-
Notifications
You must be signed in to change notification settings - Fork 16
BCDA-9715: Consolidate ECR #1302
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
base: main
Are you sure you want to change the base?
Conversation
| echo "Ref is not a tag; setting version to revision shorthand" | ||
| REV_SHORT=$(git rev-parse --short=8 HEAD) | ||
| echo "version=$REV_SHORT" >> $GITHUB_OUTPUT | ||
| echo "version=temp-$REV_SHORT" >> $GITHUB_OUTPUT |
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.
why add temp here?
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.
Needed to allow for ECR policy to differentiate between release tags and feature branch/daily image tags.
| docker image push ${{ env.ECR_URL }}:${{ steps.version.outputs.version }} | ||
| - name: Log into prod in order to push to prod ECR | ||
| uses: aws-actions/configure-aws-credentials@v4 | ||
| if: ${{ startsWith(steps.version.outputs.version, 'r') }} |
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! Adding the "temp-" prefix to non-tags lets us do neat checks like this!
…/bcda-app into carl-9715-consolidate-ecr
🎫 Ticket
https://jira.cms.gov/browse/BCDA-9715
🛠 Changes
Adjust build and publish workflows to account for consolidation of ECR. Add prefix to git sha version tags.
ℹ️ Context
Part of the process of slimming down our ECR presence from repos per env to per account.
🧪 Validation
Will need to verify workflows once bcda-ops changes have been merged.