In this repo, you'll find 3 workflows used to deploy to different Azure resources:
- azure-function-deploy.yml
- container-build-deploy.yml
- static-web-app-deploy.yml
This workflow deploys code to an Azure Function (Python). It sets up the Python version needed, installs the required dependencies and deploys using the Custom Action 'Azure/functions-action@v1'.
This workflow first builds a docker container image and then deploys it to Azure Container Instances.
The image is built using the standard docker
commands. Then, it is tagged with the commit SHA and 'latest' tags and finally it is and pushed to GHCR (GitHub Container Registry) under an IMAGE_NAME defined in the file.
The deploy part is done by using the Custom Action 'azure/container-apps-deploy-action@v1' which deploys a Docker Image to Azure Container Instances with the appropriate parameters.
This workflow builds/deploys an web app to Azure Static Web App service. It is all done by the Custom Action 'Azure/static-web-apps-deploy@v1' which builds the app using the app_build_command
and then deploys it to Azure.