-
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
Update Docker hub Workflow With Reusable actions #233
Conversation
.github/workflows/dockerhub.yml
Outdated
id: docker-image-metadata | ||
run: | | ||
echo build_date=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) >> $GITHUB_OUTPUT | ||
echo vcs_ref=$(git rev-parse --short HEAD) >> $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.
What does this vcs_ref mean?
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.
This git commit reference we are capturing it from actions repo usually contains a short reference to the specific git commit https://github.com/usdot-fhwa-stol/actions/blob/main/docker-build-metadata/action.yml
.github/workflows/dockerhub.yml
Outdated
tags: usdotfhwastoldev/telematic_cloud_messaging:${{ github.ref_name }} | ||
tags: usdotfhwastolcandidate/telematic_cloud_messaging:${{ github.ref_name }} | ||
build-args: | | ||
BUILD_DATE=${{ steps.docker-image-metadata.outputs.build_date }} |
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.
How are these build args used?
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.
as we are passing then during the docker build time process we can see the metadata details in the docker image layers once we build is finished so that the Docker hub image has metadata about when it was built, the commit it was built from.
This PR updates the Docker Hub workflow to use reusable actions from usdotfhwastol/actions repository and for consistent Docker image building and pushing.
PR Details
Description
Related GitHub Issue
Related Jira Key
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: