Skip to content

Commit

Permalink
Playing around with how images are tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpowell committed May 24, 2024
1 parent db147cd commit 7eae2c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
AZURE_WEBAPP_NAME: httpstatus-preview
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: ${{ github.repository }}-staging

permissions:
id-token: write
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 7eae2c4

Please sign in to comment.