Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.91 KB

3-github-workflows.md

File metadata and controls

53 lines (30 loc) · 1.91 KB

GitHub Workflows

This repository contains three GitHub workflows:

  1. azure-function-app.yml
  2. azure-static-web-apps.yml
  3. terraform-apply.yml

The terraform workflow is discussed in this doc.

Azure Function App workflow

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:

  1. Checks out the source code
  2. Sets up python
  3. pip installs dependencies found in requirements.txt
  4. Runs the azure functions action to deploy the function

Azure static web apps workflow

This workflow is manually triggered.

It does have some environment variables defined on lines 11-12.

This work requires two repository secrets:

  1. 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.

  2. 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.

    management-token

    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:

  1. Checks out the source code
  2. Deploys static web app