From 7eae2c4d62b3fd5fcd4e5ee35a856722ccdcc326 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Fri, 24 May 2024 11:51:31 +1000 Subject: [PATCH] Playing around with how images are tagged --- .github/workflows/staging.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index f339ba1..69915d5 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -6,7 +6,7 @@ on: env: AZURE_WEBAPP_NAME: httpstatus-preview - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: ${{ github.repository }}-staging permissions: id-token: write @@ -35,7 +35,9 @@ jobs: tags: | type=ref,event=branch type=ref,event=pr - type=sha,format=long,suffix=-preview + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=sha,format=long,suffix=,prefix= - name: ACR authentication uses: azure/docker-login@v2 @@ -84,4 +86,4 @@ jobs: uses: azure/webapps-deploy@v3 with: app-name: ${{ env.AZURE_WEBAPP_NAME }} - images: ${{ secrets.AZURE_REGISTRY_URL }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-preview + images: ${{ secrets.AZURE_REGISTRY_URL }}/${{ env.IMAGE_NAME }}:${{ github.sha }}