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
kairos-hk committed Jan 4, 2025
1 parent ebf23ff commit 6835eb4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main_trutlepods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
source venv/bin/activate
- name: Install dependencies
run: pip install Flask joblib numpy scikit-learn
run: pip install -r requirements.txt

# Optional: Add step to run tests here

Expand All @@ -51,8 +51,8 @@ jobs:
runs-on: ubuntu-latest
needs: build

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 @@ -62,13 +62,13 @@ jobs:

- name: Unzip artifact for deployment
run: unzip release.zip

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_64ECD542ED4D4C78BB4A3623D94AD0BE }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E9B0174D882C455F9B59B2A3699C6242 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_8173D066623D41979DD63CD2B2A68FA8 }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_48EA8473BA744E0582BBA3731D5AB561 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_3FCEC56232C44BD3BAFDF2946E99089A }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_05EB8DE727754845BC20631227D23CF2 }}

- name: 'Deploy to Azure Functions'
uses: Azure/functions-action@v1
Expand All @@ -77,4 +77,4 @@ jobs:
app-name: 'trutlepods'
slot-name: 'Production'
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}


0 comments on commit 6835eb4

Please sign in to comment.