Skip to content

Commit 4c5bed4

Browse files
committed
Hotfix for deployment workflow
1 parent 389408f commit 4c5bed4

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

content/guided-workshop/exercises/8-deployment.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,32 @@ In the [prior exercise](./7-create-environment.md) you created the environment o
2525
1. Define the workflow by pasting the following code into **deploy-to-azure.yml**:
2626

2727
```yml
28-
name: Deploy to Azure
29-
on:
30-
push:
31-
branches:
32-
- main
33-
34-
jobs:
35-
deploy:
36-
runs-on: ubuntu-latest
37-
steps:
38-
- name: Checkout code
39-
uses: actions/checkout@v3
40-
41-
- name: Log in to Azure
42-
uses: azure/login@v1
28+
name: Deploy to Azure
29+
on:
30+
push:
31+
branches:
32+
- main
33+
34+
jobs:
35+
deploy:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v3
40+
41+
- name: Log in to Azure
42+
uses: azure/login@v1
4343
with:
4444
creds: ${{ secrets.AZURE_CREDENTIALS }}
4545
46-
- name: Build and deploy Container App
46+
- name: Build and deploy Container App
4747
uses: azure/container-apps-deploy-action@v1
4848
with:
49-
appSourcePath: ${{ github.workspace }}/src
50-
acrName: ${{ secrets.AZURE_CONTAINER_REGISTRY }}
51-
resourceGroup: ${{ secrets.AZURE_RG }}
52-
containerAppName: ${{ secrets.AZURE_CONTAINER_APP }}
53-
containerAppEnvironment: ${{ secrets.AZURE_CONTAINER_APP_ENVIRONMENT }}
49+
appSourcePath: ${{ github.workspace }}
50+
acrName: ${{ vars.AZURE_PREFIX }}acr
51+
resourceGroup: ${{ vars.AZURE_RG }}
52+
containerAppName: ${{ vars.AZURE_PREFIX }}containerapp
53+
containerAppEnvironment: ${{ vars.AZURE_PREFIX }}containerappenvironment
5454
```
5555

5656
The workflow is set to run when code is pushed (or merged) into `main`. The deployment action is configured with the information it requires, using the naming defined in the creation workflow and the prefix you configured.
@@ -102,4 +102,6 @@ Because merging the workflow's [YML](https://en.wikipedia.org/wiki/YAML) into `m
102102

103103
Congratulations!! You have now explored the core components to DevOps and how GitHub can support your development lifecycle. You started by creating a repository, then enabled settings to secure your code. You created issues to track your work, created an environment in which to code, and enabled testing for continuous integration. You modified code and explored the GitHub flow. And finally you deployed your application to the cloud. Using these skills, you can continue to build and grow your knowledge of DevOps.
104104

105+
<!-- Add deletion steps!! -->
106+
105107
## Resources

0 commit comments

Comments
 (0)