Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 2.6 KB

challenge06.md

File metadata and controls

39 lines (22 loc) · 2.6 KB

What The Hack: DevOps with GitHub

Challenge 6 – Continuous Delivery (CD)

< Previous - Home - Next >

Introduction

In DevOps after we automate our build process, we want to automate our release process, we do this with a technique called Continuous Delivery (CD). Please take a moment to review this brief article talking about why this is important.

Challenge

In this challenge, we will use GitHub Actions to deploy our container image to the dev environment.

OPTIONAL: Use your code editor (VS Code) to update your workflow file locally on your machine. Remember to commit and push any changes.

Extend the workflow you created in Challenge #4 to:

  1. Configure your dev environment to pull the latest container image from ACR.

    • Login to Azure using your service principal, if needed (hint)
    • Use the Azure/webapps-deploy@v2 action to update the Web App to pull the latest image from ACR. Key parameters to configure:
      • app-name - the name of the wep app instance to target
      • images - the path to the image you pushed to ACR
  2. Make a small change to your application (i.e.,/Application/aspnet-core-dotnet-core/Views/Home/Index.cshtml), commit, push, monitor the workflow and see if the change shows up on the dev instance of the website.

NOTE: Normally, we would have you configure release gates next - which would require some type of manual approval/human intervention before deploying to test and prod respectively. But, as of 10/7/20, GitHub doesn't offer this natively - although it is on the GitHub roadmap, due to be available by the end of 2020.

Success Criteria

  1. A small change to /Application/aspnet-core-dotnet-core/Views/Home/Index.cshtml automatically shows up on the website running in the dev environment (i.e., <prefix>devops-dev.azurewebsites.net).

Learning Resources

< Previous - Home - Next >