From ad267e9df27316e936104c16baa4f5c0e228e4c1 Mon Sep 17 00:00:00 2001 From: souheil-yazji Date: Mon, 9 Sep 2024 13:27:37 +0000 Subject: [PATCH] Bryan(squish commits): update(publish.yaml): add github.sha as tag --- .github/workflows/publish.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8fc6933..1880f2d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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). @@ -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 \ No newline at end of file + 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 }}