Skip to content

Commit

Permalink
Merge pull request #8 from StatCan/bryan-sha-tag-github-workflow
Browse files Browse the repository at this point in the history
update(publish.yaml): add github.sha as tag
  • Loading branch information
bryanpaget authored Sep 9, 2024
2 parents c9d4231 + 1dbbce3 commit 7677132
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# * Builds, tests, and scans all images
# * (optionally) pushes the images to ACR
#
#
# This workflow triggers on:
# * a push to master
# * any create/synchronize to a PR (eg: any time you push an update to a PR).
Expand Down Expand Up @@ -72,5 +73,5 @@ jobs:
- name: Push image to registry
run: |
docker pull localhost:5000/filer-sidecar:latest
docker tag localhost:5000/filer-sidecar:latest ${{ env.REGISTRY_NAME }}.azurecr.io/filer-sidecar:latest
docker push ${{ env.REGISTRY_NAME }}.azurecr.io/filer-sidecar:latest
docker tag localhost:5000/filer-sidecar:latest ${{ env.REGISTRY_NAME }}.azurecr.io/filer-sidecar:${{ github.sha }}
docker push ${{ env.REGISTRY_NAME }}.azurecr.io/filer-sidecar:${{ github.sha }}

0 comments on commit 7677132

Please sign in to comment.