Skip to content

Commit 176a295

Browse files
author
Konstantin Strassheim
committed
reset deloyment file
1 parent e237cc9 commit 176a295

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/init_fast-api-reference.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,10 @@ jobs:
9090
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_98091920E4D5432E9786AA6ADFC34B54 }}
9191
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7BFCF659655641B8987A25BBEF11D64A }}
9292

93-
# - name: 'Deploy to Azure Web App'
94-
# uses: azure/webapps-deploy@v3
95-
# id: deploy-to-webapp
96-
# with:
97-
# app-name: 'fast-api-reference'
98-
# slot-name: 'Production'
99-
- name: Deploy to Azure Web App using ZIP deployment
100-
run: |
101-
az webapp deployment source config-zip \
102-
--resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
103-
--name fast-api-reference \
104-
--src release.zip
105-
106-
- name: Set Startup Command for uvicorn
107-
run: |
108-
az webapp config set \
109-
--resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
110-
--name fast-api-reference \
111-
--startup-file "backend/venv/bin/uvicorn main:app --host=0.0.0.0 --port=\$PORT"
93+
- name: 'Deploy to Azure Web App'
94+
uses: azure/webapps-deploy@v3
95+
id: deploy-to-webapp
96+
with:
97+
app-name: 'fast-api-reference'
98+
slot-name: 'Production'
11299

0 commit comments

Comments
 (0)