Skip to content

Commit 6835eb4

Browse files
committed
Add or update the Azure App Service build and deployment workflow config
1 parent ebf23ff commit 6835eb4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/main_trutlepods.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
source venv/bin/activate
3333
3434
- name: Install dependencies
35-
run: pip install Flask joblib numpy scikit-learn
35+
run: pip install -r requirements.txt
3636

3737
# Optional: Add step to run tests here
3838

@@ -51,8 +51,8 @@ jobs:
5151
runs-on: ubuntu-latest
5252
needs: build
5353

54-
permissions:
55-
id-token: write #This is required for requesting the JWT
54+
permissions:
55+
id-token: write #This is required for requesting the JWT
5656

5757
steps:
5858
- name: Download artifact from build job
@@ -62,13 +62,13 @@ jobs:
6262

6363
- name: Unzip artifact for deployment
6464
run: unzip release.zip
65-
66-
- name: Login to Azure
67-
uses: azure/login@v2
68-
with:
69-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_64ECD542ED4D4C78BB4A3623D94AD0BE }}
70-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E9B0174D882C455F9B59B2A3699C6242 }}
71-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_8173D066623D41979DD63CD2B2A68FA8 }}
65+
66+
- name: Login to Azure
67+
uses: azure/login@v2
68+
with:
69+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_48EA8473BA744E0582BBA3731D5AB561 }}
70+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_3FCEC56232C44BD3BAFDF2946E99089A }}
71+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_05EB8DE727754845BC20631227D23CF2 }}
7272

7373
- name: 'Deploy to Azure Functions'
7474
uses: Azure/functions-action@v1
@@ -77,4 +77,4 @@ jobs:
7777
app-name: 'trutlepods'
7878
slot-name: 'Production'
7979
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
80-
80+

0 commit comments

Comments
 (0)