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
Copy file name to clipboardExpand all lines: README.md
+51Lines changed: 51 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
This is a GitHub bot that simplifies the process of deployment for organizations from multiple interconnected repositories.
4
4
5
+
It listens certain [GitHub events](https://docs.github.com/en/developers/webhooks-and-events/events) (pull request, commit) and triggers a new deployment to be created for defined applications.
6
+
7
+
That allows your dev team to develop and deploy their code to personal dev environments e.g. `https://pull-123.customer-domain.com` managed by Kubernetes.
8
+
5
9
6
10
## Diagram flow
7
11
@@ -15,6 +19,53 @@ This is a GitHub bot that simplifies the process of deployment for organizations
15
19
3. Follow install instructions inside the bot to conect it to GitHub organization.
16
20
4. Try to make a PR in a repository, that defined in the `config.yaml` file.
17
21
22
+
## Configuration
23
+
24
+
Configuration file should be located at: `.infraway/config.yaml`
25
+
26
+
```yaml
27
+
domain: domain.tech
28
+
29
+
events:
30
+
pull_request_opened: "deploy"# or "ignore", deploy by default
31
+
pull_request_reopened: "deploy"# or "ignore", deploy by default
32
+
commit: "deploy"# or "ignore", deploy by default
33
+
34
+
stale_pull_cleanup:
35
+
enabled: true
36
+
duration: "7 days"
37
+
38
+
deploy:
39
+
- name: repo-name1
40
+
components:
41
+
- name: web
42
+
chart: ./charts/web
43
+
needs:
44
+
- static
45
+
version: commit
46
+
- name: static
47
+
version: release
48
+
repo: repo-name2
49
+
- name: api
50
+
chart: ./charts/web.api
51
+
needs: # a dependency on another component, when deploy happens, both components will be redeployed
52
+
- db
53
+
version: commit
54
+
- name: db
55
+
version: data
56
+
- name: mailer
57
+
addon: true # a component which is not installed by default with push, but can be added by a comment
58
+
version: release
59
+
60
+
versions:
61
+
- name: commit
62
+
description: latest commit made in the repo (default value)
0 commit comments