-
Notifications
You must be signed in to change notification settings - Fork 1
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
DT-454: Add GAR specific build action #1747
Conversation
jade-data-repo-ui
|
Project |
jade-data-repo-ui
|
Branch Review |
gr-DT-454-artifact-registry
|
Run status |
|
Run duration | 03m 06s |
Commit |
|
Committer | Gregory Rushton |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
17
|
View all changes introduced in this branch ↗︎ |
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.
Early feedback:
|
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.
minor suggestions, otherwise lgtm:
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v2 | ||
- name: Explicitly auth Docker for Artifact Registry | ||
run: gcloud auth configure-docker $GOOGLE_DOCKER_REPOSITORY --quiet |
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.
run: gcloud auth configure-docker $GOOGLE_DOCKER_REPOSITORY --quiet | |
run: gcloud auth configure-docker "$GOOGLE_DOCKER_REPOSITORY" --quiet |
BUMP_TAG: ${{ steps.tag.outputs.tag }} | ||
- name: Build image | ||
run: | | ||
docker build -t $TAGGED . |
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.
docker build -t $TAGGED . | |
docker build -t "$TAGGED" . |
# Publish images | ||
- name: Push image | ||
run: | | ||
docker push $TAGGED |
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.
docker push $TAGGED | |
docker push "$TAGGED" |
Closing this PR. We've applied the Google Migration tool to all affected repos so this action isn't necessary now. Additionally, this approach will not work with the current umbrella deployment process in place, we would need to update all paths in all repos at the same time. |
Addresses
https://broadworkbench.atlassian.net/browse/DT-454
Summary
We take inspiration from the existing build job and from an existing Terra build process. We have an existing Trivy action, so that is not included in this PR. We pull in the Terra bumper action which provides semantic versioning. This will supercede/replace the existing TDR
helm_tag_bump
functionality.Images can be accessed via a suitable

firecloud.org
account:Future work
When this is complete and pushing images to GAR, we will need to: