Skip to content

Commit

Permalink
Update main_edually-pilot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lafonsecallorca authored Oct 20, 2024
1 parent 46ba2b0 commit 5e4e81d
Showing 1 changed file with 47 additions and 4 deletions.
51 changes: 47 additions & 4 deletions .github/workflows/main_edually-pilot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
You're now in the production slot, which is not recommended for setting up CI/CD.Learn more
Deploy and build code from your preferred source and build provider. Learn more

Source*
Building with GitHub Actions.Change provider.
GitHub
App Service will place a GitHub Actions workflow in your chosen repository to build and deploy your app whenever there is a commit on the chosen branch. If you can't find an organization or repository, you may need to enable additional permissions on GitHub. You must have write access to your chosen GitHub repository to deploy with GitHub Actions. Learn more

Signed in as
lafonsecallorcaChange Account
Organization*
SUNY-Brockport-ACM-Student-Chapter
Repository*
AI-Education-Pilot
Branch*
main
Workflow Option*


Build
Runtime stack
Python
Version
Python 3.10
Authentication settings
Select how you want your GitHub Action workflow to authenticate to Azure. If you choose user-assigned identity, the identity selected will be federated with GitHub as an authorized client and given write permissions on the app. Learn more

Authentication type*


Subscription*
Azure for Students
Identity*
(Create new)
Workflow Configuration
File with the workflow configuration defined by the settings above.

Workflow Configuration
File path: .github/workflows/main_edually-pilot.yml

If an existing workflow configuration exists, it will be overwritten.
# 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
Expand Down Expand Up @@ -50,7 +91,7 @@ jobs:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write # Required for requesting the JWT
id-token: write #This is required for requesting the JWT

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


- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID }}
client-id: ${{ secrets.__clientidsecretname__ }}
tenant-id: ${{ secrets.__tenantidsecretname__ }}
subscription-id: ${{ secrets.__subscriptionidsecretname__ }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
app-name: 'edually-pilot'
slot-name: 'Production'

0 comments on commit 5e4e81d

Please sign in to comment.