Skip to content

Commit

Permalink
👷 Pass git commit hash to docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJenne18 committed Jul 19, 2024
1 parent 6c9d709 commit 7c8b286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deployment_uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
UAT_TAG: uat
run: |
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -t $REGISTRY/$REPOSITORY:$UAT_TAG .
docker build --build-arg GIT_SHA=${{ github.sha }} -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -t $REGISTRY/$REPOSITORY:$UAT_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:$UAT_TAG

0 comments on commit 7c8b286

Please sign in to comment.