You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ For more information on the goals of this course, check out the [`course-details
14
14
15
15
## Contribute
16
16
17
-
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/master/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
17
+
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/main/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
18
18
19
-
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/master/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
19
+
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/main/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
Copy file name to clipboardExpand all lines: responses/01_label-trigger.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
We'll learn how to create a workflow that enables Continuous Delivery. You'll:
4
4
- create a workflow to deploy to staging based on a label
5
-
- create a workflow to deploy to production based on merging to master
5
+
- create a workflow to deploy to production based on merging to main
6
6
7
7
Before you start, you should be familiar with GitHub and Continuous Integration. If you aren't sure where to start, you may want to check out these two Learning Lab courses:
Copy file name to clipboardExpand all lines: responses/09_merge-trigger.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,19 @@
2
2
3
3
Deployments to production can be manual (like through a Chat Ops command), or automated (if, say, we trust our pull request review process and we've followed continuous integration practices).
4
4
5
-
We'll trigger a deployment to the production environment whenever something is committed to master. Our master branch is protected, so the only way for commits to appear on master is for a pull request to have been created and gone through the proper review process and merged.
5
+
We'll trigger a deployment to the production environment whenever something is committed to main. Our main branch is protected, so the only way for commits to appear on main is for a pull request to have been created and gone through the proper review process and merged.
6
6
7
7
## Step 8: Write the production deployment trigger
8
8
9
-
Let's create a new workflow that deals specifically with commits to master and handles deployments to prod.
9
+
Let's create a new workflow that deals specifically with commits to main and handles deployments to prod.
10
10
11
-
### :keyboard: Activity: Write the production deployment trigger on merge to master
11
+
### :keyboard: Activity: Write the production deployment trigger on merge to main
12
12
13
13
1. Edit the `deploy-prod.yml` file on this branch, or [use this quick link]({{ repoUrl }}/edit/production-deployment-workflow/.github/CHANGETHIS/deploy-prod.yml?) _(We recommend opening the quick link in another tab)_
14
14
2. Rename the file in this pull request to `.github/workflows/deploy-prod.yml`
15
15
3. Add a `push` trigger
16
16
4. Add `branches` inside the push block
17
-
5. Add `- master` inside the branches block
17
+
5. Add `- main` inside the branches block
18
18
6. Commit your changes to this branch
19
19
20
20
The file should look like this when you're finished:
Copy file name to clipboardExpand all lines: responses/10_deploy-prod.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Great! The syntax you used tells GitHub Actions to only run that workflow when a commit is made to the master branch.
1
+
Great! The syntax you used tells GitHub Actions to only run that workflow when a commit is made to the main branch.
2
2
3
3
# Deploying to production
4
4
@@ -10,7 +10,7 @@ In our case, we can match our production environment to be exactly like our stag
10
10
11
11
## Step 9: Complete the deployment to production workflow
12
12
13
-
### :keyboard: Commit the steps to the production workflow that allow you to deploy on merge to master
13
+
### :keyboard: Commit the steps to the production workflow that allow you to deploy on merge to main
14
14
15
15
1. Edit the `deploy-prod.yml` file on this branch, or [use this quick link]({{ repoUrl }}/edit/production-deployment-workflow/.github/workflows/deploy-prod.yml?) _(We recommend opening the quick link in another tab)_
Copy file name to clipboardExpand all lines: responses/12_congratulations.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
Now, we just have to wait for the deployment to occur, and for the package to be published to GitHub Packages. When it's completed, you should be able to see it in the [Packages]({{ repoUrl }}/packages) section of your repository. You can get the deployment URL in the [Actions]({{ repoUrl }}/actions) log, just like the staging URL.
4
4
5
+
:bangbang: Remember to destroy or disable the AWS services created during this course if you'd like to ensure they don't consume resources accidentally. As a reminder, the following resources were created on your AWS account:
0 commit comments