Use GitHub Actions to Run a Release in Azure DevOps

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

You have the application code in GitHub, but you want to integrate Azure DevOps. What do you do? In this lab, you’ll take the provided code and create a GitHub Actions workflow, which triggers a job in Azure Pipelines.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an Azure DevOps Organization
  • Log in to the Azure Portal using the provided credentials.
  • From the Services menu, search for Azure DevOps.
  • Create a new organization and project named MyFirstProject.
Import Code and Set Up GitHub Workflow
  • Create a new GitHub repository.
  • Import the code from the following GitHub repository: https://github.com/linuxacademy/content-az400-lab-resources.git.
  • Create a workflow, inserting the Connect Azure Pipelines action.
  • Create a pipeline in Azure Pipelines, connecting your GitHub repository to Azure DevOps.
  • Create a service connection for Azure Resource Manager using the service principal provided in the lab credentials.
Deploy Code from GitHub to Azure WebApp
  • Start the build by committing the workflow.yml file to the actions branch.
  • Verify that the Azure WebApp has been deployed successfully.

Additional Resources

Start by logging in to the Azure portal and searching for Azure DevOps from the Services menu. Proceed to create a new Azure DevOps organization and project named MyFirstProject. Select Azure Repos and import the following code: https://github.com/linuxacademy/content-az400-lab-resources.git.

The application is located on the actions branch. Proceed to import the code on actions into your own GitHub account. Once you've imported the code, create a workflow that will trigger a pipeline in Azure DevOps.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?