From c9c10798e60ffbf09bc66ebd9ae2915745ac2a81 Mon Sep 17 00:00:00 2001 From: PathNotFound404 Date: Wed, 29 Apr 2026 17:18:42 -0500 Subject: [PATCH] Switch deploy to ACR push + webhook (no service principal needed) Students subscription blocks service principal creation, so azure/webapps-deploy cannot authenticate. Instead both App Services have continuous deployment enabled: ACR fires a webhook on :latest push and the App Service auto-pulls the new image. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/deploy.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f758d5f..143223b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ env: jobs: deploy-backend: - name: Backend — build, push & deploy + name: Backend — build & push runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -30,15 +30,8 @@ jobs: docker push $IMAGE:${{ github.sha }} docker push $IMAGE:latest - - name: Deploy to Azure App Service - uses: azure/webapps-deploy@v3 - with: - app-name: ${{ secrets.BACKEND_APP_NAME }} - publish-profile: ${{ secrets.BACKEND_PUBLISH_PROFILE }} - images: ${{ secrets.ACR_LOGIN_SERVER }}/${{ env.BACKEND_IMAGE }}:${{ github.sha }} - deploy-frontend: - name: Frontend — build, push & deploy + name: Frontend — build & push runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -60,10 +53,3 @@ jobs: -t $IMAGE:latest . docker push $IMAGE:${{ github.sha }} docker push $IMAGE:latest - - - name: Deploy to Azure App Service - uses: azure/webapps-deploy@v3 - with: - app-name: ${{ secrets.FRONTEND_APP_NAME }} - publish-profile: ${{ secrets.FRONTEND_PUBLISH_PROFILE }} - images: ${{ secrets.ACR_LOGIN_SERVER }}/${{ env.FRONTEND_IMAGE }}:${{ github.sha }}