This repository contains three GitHub workflows:
The terraform workflow is discussed in this doc.
This workflow is manually triggered.
It does have some environment variables defined on lines 6-8. You will need to change AZURE_FUNCTIONAPP_NAME
and possibly others depending on if you make updates to this sample.
This workflow contains 1 job named build-and-deploy.
The build-and-deploy job runs on any GitHub host running ubuntu-latest.
It runs 4 steps:
- Checks out the source code
- Sets up python
- pip installs dependencies found in requirements.txt
- Runs the azure functions action to deploy the function
This workflow is manually triggered.
It does have some environment variables defined on lines 11-12.
This work requires two repository secrets:
-
You will need to add a secret to your repository named PRODUCTION_API_SERVER_URL
This should be set to your function app's base URL.
-
After you've done your infrastructure pipeline, go to the Azure portal and find your static website. In the overview tab, select "Management deployment token" and copy the value.
Go to Github and create a secret called "AZURE_STATIC_WEB_APPS_API_TOKEN" and paste in the deployment token as the secret's value.
This workflow contains 1 job named build-and-deploy.
The build-and-deploy job runs on any GitHub host running ubuntu-latest.
It runs 2 steps:
- Checks out the source code
- Deploys static web app