From 66b6c1c3c685242d3ffced269665130d09ae2c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ku=CC=88pper?= Date: Fri, 8 Nov 2024 11:25:52 -0500 Subject: [PATCH] use separate step for INT --- .github/workflows/build-and-deploy.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 187e2fbb..bf301021 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -253,6 +253,34 @@ jobs: slot-name: "Production" package: . + deploy_int: + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + needs: build_dotnet + environment: + name: "prod" + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + permissions: + id-token: write #This is required for requesting the JWT + env: + Api.BaseUrl: https://bmm-api.brunstad.org + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v4 + with: + name: WebApp + + - name: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_FC3514582EAC4AA58F660DDED58E18CD }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_79CAD2F981C94DA0AF6A512047D4235F }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_261A68B4000D4EECBCBFF4E3FF3C84F9 }} + + - name: debug + run: ls -la + - name: Deploy to Azure Web App id: deploy-to-webapp-int uses: azure/webapps-deploy@v2