Skip to content

Commit

Permalink
Add or update the Azure App Service build and deployment workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
jvestell committed Oct 11, 2024
1 parent ff52c62 commit 62cb958
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/jerrod_azure_00_momentfinder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ jobs:
source venv/bin/activate
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install gunicorn
run: pip install -r requirements.txt

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

Expand All @@ -51,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 @@ -63,22 +61,18 @@ jobs:
- name: Unzip artifact for deployment
run: unzip release.zip


- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_97D80F2BD4094B0CB8134E41C0BCAFB4 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C82882C5F1884E849BEE7584E6557D97 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_184B8861670D48389B04D679E2E7066F }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B0A6E4A6B97F425CAEEB987AD0ACE975 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_817173BE095844168BCCBDC9A607548B }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_77BBF89E878C4064BC60682F38411D8A }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
app-name: 'MomentFinder'
slot-name: 'Production'
startup-command: 'gunicorn --bind=0.0.0.0 --timeout 600 wsgi:app'
env:
PYTHONUNBUFFERED: 1
FLASK_ENV: production
FLASK_DEBUG: 0

0 comments on commit 62cb958

Please sign in to comment.