Module update

Module update 

Source
Expand description

Docker image update and rollback operations

This module provides functionality to update the opencode image to the latest version and rollback to a previous version if needed.

Enums§

UpdateResult
Result of an update operation

Constants§

PREVIOUS_TAG
Tag for the previous image version (used for rollback)

Functions§

has_previous_image
Check if a previous image exists for rollback
rollback_image
Rollback to the previous image version
tag_current_as_previous
Tag the current image as “previous” for rollback support
update_image
Update the opencode image to the latest version