Skip to content

Commit efbd87d

Browse files
Modify Azure deployment workflow for package path
Updated deployment workflow to include package path for Azure deployment.
1 parent ad3b784 commit efbd87d

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/ai-chat_jobhelper-py.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
python -m venv antenv
3232
source antenv/bin/activate
33-
pip install -r requirements.txt
33+
pip install -r ./AI2/requirements.txt
3434
3535
# By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size.
3636
- name: Upload artifact for deployment jobs
@@ -50,27 +50,29 @@ jobs:
5050
deploy:
5151
runs-on: ubuntu-latest
5252
needs: build
53-
permissions:
54-
id-token: write #This is required for requesting the JWT
55-
contents: read #This is required for actions/checkout
53+
permissions:
54+
id-token: write #This is required for requesting the JWT
55+
contents: read #This is required for actions/checkout
5656

5757
steps:
5858
- name: Download artifact from build job
5959
uses: actions/download-artifact@v4
6060
with:
6161
name: python-app
62-
63-
- name: Login to Azure
64-
uses: azure/login@v2
65-
with:
66-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_CCB82682BC0B40759A91443A59CC22DD }}
67-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_8B22BBD01A604C1797071A59FFECB11A }}
68-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9D80B37748254EB18C942C888111FE67 }}
62+
63+
- name: Login to Azure
64+
uses: azure/login@v2
65+
with:
66+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_CCB82682BC0B40759A91443A59CC22DD }}
67+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_8B22BBD01A604C1797071A59FFECB11A }}
68+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9D80B37748254EB18C942C888111FE67 }}
6969

7070
- name: 'Deploy to Azure Web App'
7171
uses: azure/webapps-deploy@v3
7272
id: deploy-to-webapp
7373
with:
7474
app-name: 'jobhelper-py'
7575
slot-name: 'Production'
76-
76+
package: ./AI2
77+
78+

0 commit comments

Comments
 (0)