Skip to content

Commit

Permalink
Update main_vets-ai-bthnchcjenfbbfbb.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway authored Nov 6, 2024
1 parent 4a98d59 commit e665117
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main_vets-ai-bthnchcjenfbbfbb.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions

name: Build and deploy Python app to Azure Web App - vets-ai-bthnchcjenfbbfbb

on:
Expand Down Expand Up @@ -46,11 +42,6 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
Expand All @@ -61,18 +52,27 @@ jobs:
- name: Unzip artifact for deployment
run: unzip release.zip


# Use either Login to Azure with a Service Principal or a Publish Profile below:

# Option 1: Login to Azure with Service Principal
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7426045762884A46B2C32146614BC49D }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C72663B1D57841BCA0661A1AA7305062 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_E92F13266520462ABA4F2DE624F99935 }}

# Option 2: Use Publish Profile for simpler auth
# - name: 'Deploy to Azure Web App'
# uses: azure/webapps-deploy@v3
# with:
# app-name: 'vets-ai'
# publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
# slot-name: 'Production'

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
app-name: 'ASP-streamlitapp-9931'
app-name: 'vets-ai' # Corrected name
slot-name: 'Production'

0 comments on commit e665117

Please sign in to comment.