GitHub Actions - Building and deploying a Python Web App to Azure

GitHub Actions - Building and deploying a Python Web App to Azure

Same pipelines different name

Currently, when I am deploying resources in Azure I am employing Azure Pipelines within Azure DevOps. However, as Microsoft has acquired GitHub its services become more relevant to the Azure environment. Naturally I wanted to get familiar with building and deploying resources through GitHub, especially GitHub Action, which is the counterpart to Azure Pipelines.

A test case

To get familiar with GitHub Actions I build a simple Python web app and deployed it to the Azure environment. It was easier than expected.

Step 1 - Create a GitHub repository by importing a quickstart template for a Python web app

Es wurde kein Alt-Text für dieses Bild angegeben.

Step 2 - Enable GitHub Actions in the settings of your repository

Es wurde kein Alt-Text für dieses Bild angegeben.

Step 3 - Create an Azure Web App instance in the Azure portal with the correct Python runtime stack

Es wurde kein Alt-Text für dieses Bild angegeben.

Step 4 - Create a new workflow yaml file in GitHub Actions by choosing a workflow template

Es wurde kein Alt-Text für dieses Bild angegeben.
Es wurde kein Alt-Text für dieses Bild angegeben.

Step 5 - Download the publish profile (basically credentials) from your previously created Azure web app instance

Es wurde kein Alt-Text für dieses Bild angegeben.

Step 6 - Create an Actions secret containing the publish profile in GitHub

Es wurde kein Alt-Text für dieses Bild angegeben.

Step 7 - Configure the workflow yaml file according to its comments

Es wurde kein Alt-Text für dieses Bild angegeben.

Step 8 - Run (and probably debug the workflow)

Es wurde kein Alt-Text für dieses Bild angegeben.

Step 9 - Check out your new fancy Azure web app

Es wurde kein Alt-Text für dieses Bild angegeben.

To view or add a comment, sign in

More articles by Mathias Weber

Others also viewed

Explore content categories