Create two deployment workflows using GitHub Actions and Microsoft Azure.
Nicely done, you used a workflow to spin up your Azure environment 💃
Now that the proper configuration and workflow files are present, let's test our actions! In this step, there's a small change to the game. Once you add the appropriate label to your pull request, you should be able to see the deployment!
- Create a new branch named
staging-testfrommainusing the same steps as you did for the previousazure-configurationbranch. - Edit the
.github/workflows/deploy-staging.ymlfile, and replace every<username>with your GitHub username. - Commit that change to the new
staging-testbranch. - Go to the Pull requests tab and there should be a yellow banner with the
staging-testbranch toCompare & pull request. Once the pull request is opened up, clickCreate pull request.
- Ensure that the
GITHUB_TOKENfor this repository has read and write permissions under Workflow permissions. Learn more. This is required for your workflow to be able to upload your image to the container registry. - Create and apply the
stagelabel to your open pull request - Wait for the GitHub Actions workflow to run and deploy the application to your Azure environment. You can follow along in the Actions tab or in the pull request merge box. The deployment may take a few moments but you've done the right thing. Once the deployment is successful, you'll see green check marks for each run, and you'll see a URL for your deployment. Play the game!
- Wait about 20 seconds then refresh this page (the one you're following instructions from). GitHub Actions will automatically update to the next step.
Get help: Post in our discussion board • Review the GitHub status page
© 2023 GitHub • Code of Conduct • MIT License