Skip to content

add a "rollback" feature if the docker step fails #15

@evanugarte

Description

@evanugarte

lets add a new field to the yaml like

enable_rollback: true

when this is enabled, the process of pulling and updating should go like this

  • check if enable_rollback is set
  • if so, make a new branch like DATE-TIME-main like 20260103-171022-main, this is the copy of main before we pull from github
    • store the name of this branch as a variable, we will use it later
  • switch back to main

happy path

  • pull from github
  • try docker compose up
  • if it works, delete the temporary branch we created

sad path

say we are on main and docker is breaking, we need to roll back

  • we need to make main match 20260103-171022-main, what github command can do this?
  • assuming git command works, delete our temporary branch 20260103-171022-main
  • retry docker compose up

if we do a rollback, we should push an embed saying that it failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions