Skip to content

Conversation

@carlpartridge
Copy link
Collaborator

@carlpartridge carlpartridge commented Jan 29, 2026

🎫 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.

@carlpartridge carlpartridge requested a review from a team as a code owner January 29, 2026 20:15
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add temp here?

Copy link
Collaborator Author

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') }}
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants