Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As of now, there is no simple way to click and roll back rollback the change to the backup. But it can be achieved in the following ways with simple customization.

Choose either option 1 or 2, don’t use both.

  1. Customize deploy workflow to deploy from the backup artifact repository. Simply copy the backup artifact to the artifacts folder before deploying.

    1. Backups are available to the endpoint during a follow-up deployment. They are delivered in the $FD_WORKING_DIR/backups folder.

    2. Add an input to your deploy workflow like Rollback as a boolean

    3. Add an if condition before the deployment step. If Rollback is true, then copy the backup artifact ($FD_WORKING_DIR/backups) to the artifacts folder ($FD_ARTIFACTS_DIR) (use shell or file step for this)

  2. Download the files from the Backups section of artifacts, and commit them to the SCM repository. Build and deploy as normal.

...