8000 Fix some paragraphs (#42) · gitploy-io/gitploy-io.github.io@52bad2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 52bad2e

Browse files
author
Noah Lee
authored
Fix some paragraphs (#42)
1 parent 07506c5 commit 52bad2e

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

blog/2022-03-10-deploy-to-multi-envs/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Having a well-tuned workflow keeps a team productive and helps them deliver reli
1111

1212
A general way for deploying to an environment is the branch strategy. Users create branches for each environment and deploy them by pushing a commit to the branch. Then, The deployment tool such as GitHub Action or Circle CI will deploy to the environment corresponding to the branch name.
1313

14-
The following is an example implemented by a GitHub Action. Firstly, it wants to trigger the workflow on push events for specific branches such as `dev` and `prod`. And in the step, through the `if` syntax, the workflow deploys it to a different environment for each branch.
14+
The following is an example that deploy to the Azure Function App by a GitHub Action. Firstly, it wants to trigger the workflow on push events for specific branches such as `dev`, `staging` and `prod`. And in the `steps`, through the `if` syntax, the workflow deploys it to a different environment for each branch.
1515

1616
<details>
1717
<summary>Deploy By Branch Push</summary>
@@ -51,7 +51,9 @@ jobs:
5151
5252
**However, although the branch strategy is easy and fast, it is not flexible and scalable.** The user must create a new branch and modify the workflow if a new environment is added.
5353
54-
On the other hand, Gitploy provides another solution. **Gitploy dispatches an event that includes information necessary for deployment, such as the environment name, Function App name, and so on, through the [deployment API](https://docs.github.com/en/rest/reference/deployments#deployments) when a user triggers.** To activate Gitploy, we should place the `deploy.yml` file in the root of the git repository like below. Note that the `payload` field has the extra information for deployment, and it has different information for each environment, respectively. When a user triggers, the `payload` is passed to the deployment tooling.
54+
On the other hand, Gitploy provides another solution. **Gitploy dispatches an event that includes information necessary for deployment, such as the environment name, Function App name, and so on, through the [deployment API](https://docs.github.com/en/rest/reference/deployments#deployments).**
55+
56+
To activate Gitploy, we should place the `deploy.yml` file in the root of the git repository like below. Note that the `payload` field has the informations for deployment, and it has different information for each environment, respectively. When a user triggers, the `payload` is passed to the deployment tooling.
5557

5658
<details>
5759
<summary>deploy.yml</summary>
@@ -72,7 +74,7 @@ envs:
7274

7375
</details>
7476

75-
And in the workflow, the information for deployment is read through the `github.event.deployment.payload` context. The thing is that the workflow does not need `if` syntax for conditional steps anymore because an event has information.
77+
And in the workflow, the information for deployment is read through the `github.event.deployment.payload` context so that the workflow does not need `if` syntax for conditional steps anymore.
7678

7779
<details>
7880
<summary>Deploy By Gitploy</summary>

blog/authors.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0