Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 7332f63

Browse files
committed
clarify deployments to prod
1 parent d59c276 commit 7332f63

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

responses/09_merge-trigger.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# Different triggers
22

3-
For the deployment to production, the trigger will be a merge to master.
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+
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.
46

57
## Step 9: Write the production deployment trigger
68

9+
Let's create a new workflow that deals specifically with commits to master and handles deployments to prod.
10+
711
### :keyboard: Activity: Write the production deployment trigger on merge to master
812

9-
1. First, change the `CHANGETHIS` directory to `workflows`
10-
2. Make the file look like this
13+
1. Rename the file in this pull request to `.github/workflows/deploy-prod.yml`.
14+
1. Add a `push` trigger.
15+
1. Add `branches` inside the push block.
16+
1. Add `- master` inside the branches block.
17+
1. Commit your changes to this branch.
18+
19+
The file should look like this when you're finished:
1120

1221
```yml
1322
name: Production deployment

0 commit comments

Comments
 (0)