Skip to content

Commit

Permalink
use separate step for INT
Browse files Browse the repository at this point in the history
  • Loading branch information
kkuepper committed Nov 8, 2024
1 parent 9706212 commit 66b6c1c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66b6c1c

Please sign in to comment.