Skip to content

Commit

Permalink
refactor(ci): deploy steps for Azure WebApps
Browse files Browse the repository at this point in the history
one each for MST and SBMTD, using secrets from the GH Actions environment
  • Loading branch information
thekaveman committed Jun 7, 2024
1 parent e2ace18 commit c94a366
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ jobs:
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref_type != 'tag' && github.ref_name || contains(github.ref, '-rc') && 'test' || 'prod' }}
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:${{ github.sha }}
- name: Deploy to MST Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: ${{ vars.MST_AZURE_WEBAPP_NAME }}
images: ghcr.io/${{ github.repository }}:${{ github.sha }}
publish-profile: ${{ secrets.MST_AZURE_WEBAPP_PUBLISH_PROFILE }}

- name: Deploy to SBMTD Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: ${{ vars.SBMTD_AZURE_WEBAPP_NAME }}
images: ghcr.io/${{ github.repository }}:${{ github.sha }}
publish-profile: ${{ secrets.SBMTD_AZURE_WEBAPP_PUBLISH_PROFILE }}

0 comments on commit c94a366

Please sign in to comment.