-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SFR-2403: Add rollback step #584
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
MANIFEST=$(aws ecr batch-get-image --repository-name $ECR_REPOSITORY --image-ids imageTag="production-latest" --output json | jq --raw-output --join-output '.images[0].imageManifest') | ||
aws ecr put-image --repository-name $ECR_REPOSITORY --image-tag "production-previous" --image-manifest "$MANIFEST" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice - i like this!
.github/workflows/full-ci-cd.yml
Outdated
@@ -23,3 +23,42 @@ jobs: | |||
needs: run_e2e_tests | |||
uses: NYPL/sfr-bookfinder-front-end/.github/workflows/build-production.yaml@main | |||
secrets: inherit | |||
|
|||
# Rollback job in case of failure (Revert production to the previous task definition) | |||
rollback: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are your thoughts on creating a separate workflow for the rollback?
I think you'll need to add an on block:
on:
workflow_dispatch:
...
Looks great! |
Jira Ticket
This PR does the following:
Testing requirements & instructions: