Skip to content

Commit

Permalink
Update main_petstagram-demo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Minkov authored Apr 3, 2024
1 parent 1241e72 commit ba5b141
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main_petstagram-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
source venv/bin/activate
- name: Install dependencies
run: pip install -r requirements.txt
run: cd petstagram && pip install -r requirements.txt

# Optional: Add step to run tests here (PyTest, Django test suites, etc.)

Expand All @@ -49,8 +49,8 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
Expand All @@ -61,18 +61,18 @@ jobs:
- name: Unzip artifact for deployment
run: unzip release.zip


- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_C9249F7D86C54515B8558213DF2E07FE }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_71E35FE6494D4466BAD6038FB7E72DF7 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B3255A24812249E1B402B8CB53B235AB }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_C9249F7D86C54515B8558213DF2E07FE }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_71E35FE6494D4466BAD6038FB7E72DF7 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_B3255A24812249E1B402B8CB53B235AB }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'petstagram-demo'
slot-name: 'Production'


0 comments on commit ba5b141

Please sign in to comment.