8000 Enhance the index page of docs (#14) · gitploy-io/gitploy-io.github.io@277d32a · GitHub
[go: up one dir, main page]

Skip to content

Commit 277d32a

Browse files
author
Noah Lee
authored
Enhance the index page of docs (#14)
1 parent 313d78e commit 277d32a

File tree

4 files changed

+49
-17
lines changed

4 files changed

+49
-17
lines changed

docs/concepts/deploy.yml.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ Gitploy configures a pipeline with a simple, easy‑to‑read file that you comm
1212

1313
If you want to get started quickly, you should click the *New Configuration* link, copy the `deploy.yml` file, and push it into your git repository. Then you can find the `production` environment in Gitploy.
1414

15-
```yaml
16-
# deploy.yml
15+
```yaml title="deploy.yml"
1716
envs:
1817
- name: production
1918
auto_merge: false
@@ -28,7 +27,7 @@ envs:
2827

2928
For multi-environment, Gitploy provides you can make different pipelines for each environment, respectively. The configuration has to be defined under the `envs` field. The following example shows each environment has a different configuration.
3029

31-
```yaml
30+
```yaml title="deploy.yml"
3231
envs:
3332
# Development environment
3433
- name: development
@@ -47,7 +46,7 @@ envs:
4746
4847
Internally, Gitploy posts a deployment to GitHub [deployments API](https://docs.github.com/en/rest/reference/repos#create-a-deployment) with parameters from the configuration file. These parameters help you can verify the artifact before you start to deploy. The configuration provides fields to set all parameters of GitHub deployment API. You can check the [document](../references/deploy.yml.md) for the detail.
4948
50-
```yaml
49+
```yaml title="deploy.yml"
5150
envs:
5251
- name: production
5352
task: deploy:lambda
@@ -63,7 +62,7 @@ envs:
6362
6463
Gitploy provides not only manual deployment but also auto-deployment. Gitploy is listening for the push event dispatched from GitHub and triggers to deploy automatically when the ref is matched with the `auto_deploy_on` of the configuration file.
6564

66-
```yaml
65+
```yaml title="deploy.yml"
6766
envs:
6867
- name: production
6968
auto_deploy_on: refs/heads/main
@@ -74,7 +73,7 @@ envs:
7473

7574
Gitploy support to add a window to prevent unintended deployment for the environment. You can freeze a window periodically by a cron expression.
7675

77-
```yaml
76+
```yaml title="deploy.yml"
7877
envs:
7978
- name: production
8079
frozen_windows:
@@ -92,7 +91,7 @@ envs:
9291

9392
Gitploy provides the review process. You can list up to users on the configuration file. You can check the [document](./review.md) for the detail.
9493

95-
```yaml
94+
```yaml title="deploy.yml"
9695
envs:
9796
- name: production
9897
review:

docs/concepts/review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gitploy has the review to require at least one approval for the deployment. You
1010

1111
1\. To enable review, you must configure the `review` field first.
1212

13-
```yaml
13+
```yaml title="deploy.yml"
1414
envs:
1515
- name: production
1616
review:

docs/index.md

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,46 @@
11
---
22
sidebar_position: 1
3+
title: What is Gitploy?
34
---
45

5-
# Gitploy
66

7-
## What is Gitploy?
7+
![Gitploy](../static/img/docs/gitploy.gif)
88

9-
GitHub provides the [deployment API](https://docs.github.com/en/rest/reference/deployments#deployments) to deploy a specific ref(branch, SHA, tag). It offers strong features to make your team (or organization) can deploy fast and safely. But it takes a lot of resources to build the deployment system around GitHub deployment API.
9+
Gitploy is the tooling that helps your organization build the deployment system in minutes. It enables your organization **to deploy in the same manner** without worrying about the details of different types of applications and **to deploy differently** for each application, respectively. And as a result, your organization can get a robust system to deploy fast and safely. 🚀
1010

11-
Gitploy makes your team or organization build the deployment system around GitHub in minutes. Now, do not waste time building the deployment system.
11+
## Deploy in the same manner
1212

13-
![Gitploy](../static/img/docs/gitploy.gif)
13+
An organization has different types of applications, and it needs different deployment toolings for each application. For example, if an organization uses the Kubernetes for servers and the S3 for static websites, they generally choose different toolings. In my case, I used to choose Spinnaker for Kubernetes and CI tools (Ex. GitHub Action) for S3.
14+
15+
But multiple tooling has a risk of increasing the complexity of the system. It costs users who want to deploy to learn because each tooling has a different interface. And also, it is hard to manage distributed deployments in one place. If an organization needs it, they should collect and aggregate it by themselves.
16+
17+
Gitploy resolves the complexity perfectly in minutes. It always provides **the way to deploy in the same manner.** The users who want to deploy don't need to know which infrastructure they deploy or which toolings they use anymore. They just deploy what they want and check how it goes.
18+
19+
Gitploy provides an intuitive UI similar to GitHub. Users can select one of the commits, branches, or tags to deploy and follow up on the deployment status.
20+
21+
## Deploy differently
22+
23+
Each application needs a customizable pipeline. If an organization has essential applications to deploy carefully, it should enforce a gateway like a review or deploy freeze window. And an organization chooses continuous delivery or continuous deployment for application.
24+
25+
Gitploy provides a way **to configure a pipeline with a simple, easy‑to‑read file for each repository (each environment).** The default path is `deploy.yml` at the root directory, but you can replace the file path in the settings tab of Gitploy.
26+
27+
```yaml title="deploy.yml"
28+
envs:
29+
- name: production
30+
task: deploy:kubernetes
31+
# Verify that the format of ref is the semantic versioning.
32+
deployable_ref: 'v.*\..*\..*'
33+
# Check the Docker image exists.
34+
required_contexts:
35+
- "publish-image"
36+
# Collect the metrics
37+
production_environment: true
38+
# Enable review
39+
review:
40+
enabled: true
41+
reviewers:
42+
- octocat
43+
```
44+
45+
46+
Currently, Gitploy provides powerful options such as *`ref` verification*, *continuous delivery vs continuous deployment*, and *review*. You can check the documentation for the detail.

docs/tasks/usecases.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar_position: 3
88

99
The general way of deployment is deploying the head of the `main` branch that has only verified commits. To constrain deploying only the head of the `main` branch, we can use the `auto_merge` parameter of GitHub [deployment API](https://docs.github.com/en/rest/reference/repos#create-a-deployment) to ensure that the deployment is the head of the branch, and set `deployable_ref` field with the `main`.
1010

11-
```yaml
11+
```yaml title="deploy.yml"
1212
envs:
1313
- name: production
1414
auto_merge: true
@@ -20,7 +20,7 @@ envs:
2020
2121
The versioning is the general way to specify the artifact or the commit, and GitHub provides the release page for versioning. If your team (or organization) wants to constrain deploying with the version, you can use the `deployable_ref` field like below.
2222

23-
```yaml
23+
```yaml title="deploy.yml"
2424
envs:
2525
- name: production
2626
auto_merge: false
@@ -32,7 +32,7 @@ envs:
3232

3333
The artifact could be a binary file from compiling source codes or a docker image, which means we have to build the artifact before we deploy. The commit status is the best way to verify if the artifact exists or not. The builder, such as GitHub Action or Circle CI, posts the commit status after building the artifact, and we can verify it by the `required_contexts` parameter when we deploy. You can reference the `deploy.yml` of Gitploy.
3434

35-
```yaml
35+
```yaml title="deploy.yml"
3636
envs:
3737
- name: production
3838
auto_merge: false
@@ -45,7 +45,7 @@ envs:
4545

4646
If you want to enable the auto-deployment when the pull request is merged into the main branch, you should configure the `auto_deploy_on` field like the below.
4747

48-
```yaml
48+
```yaml title="deploy.yml"
4949
envs:
5050
- name: production
5151
auto_merge: true

0 commit comments

Comments
 (0)
0