From 223fd4f137a3dc67c95f32ed932675f6c252d5ef Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 21 May 2024 11:21:28 +0000 Subject: [PATCH 1/2] chore(ci): only tag Docker image with SHA we're moving away from using the branch-based tags and associated webhooks, so we won't need this image tag --- .github/workflows/deploy.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5dadca811..7209de623 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -61,6 +61,4 @@ jobs: context: . file: appcontainer/Dockerfile push: true - tags: | - ghcr.io/${{ github.repository }}:${{ github.ref_name }} - ghcr.io/${{ github.repository }}:${{ github.sha }} + tags: ghcr.io/${{ github.repository }}:${{ github.sha }} From 98fc86a7445e80e2d75a66a66bcc3fe6e432fd4b Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 21 May 2024 11:55:56 +0000 Subject: [PATCH 2/2] ci(deploy): azure/webapps-deploy deploys new image replaces the old webhooks-based deployment --- .github/workflows/deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7209de623..790c295a3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -62,3 +62,10 @@ jobs: file: appcontainer/Dockerfile push: true tags: ghcr.io/${{ github.repository }}:${{ github.sha }} + + - name: Deploy to Azure Web App + uses: azure/webapps-deploy@v2 + with: + app-name: ${{ vars.AZURE_WEBAPP_NAME }} + images: ghcr.io/${{ github.repository }}:${{ github.sha }} + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}