Skip to content

Commit 52c1a90

Browse files
authored
Merge pull request #232 from devilbox/release-0.137
Release 0.137
2 parents 436babd + e19d955 commit 52c1a90

File tree

91 files changed

+3555
-2521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3555
-2521
lines changed

.github/workflows/action_branch.yml

+172
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: build
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
push:
14+
15+
16+
jobs:
17+
18+
# -----------------------------------------------------------------------------------------------
19+
# (1/8) Determine parameter settings
20+
# -----------------------------------------------------------------------------------------------
21+
params:
22+
uses: ./.github/workflows/params.yml
23+
24+
25+
# -----------------------------------------------------------------------------------------------
26+
# (2/8) Configure Build and Deploy Matrices
27+
# -----------------------------------------------------------------------------------------------
28+
configure:
29+
needs: [params]
30+
uses: ./.github/workflows/zzz-reuse-configure.yml
31+
with:
32+
enabled: true
33+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
34+
matrix: ${{ needs.params.outputs.matrix }}
35+
refs: ${{ needs.params.outputs.refs }}
36+
secrets:
37+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
38+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
39+
40+
41+
# -----------------------------------------------------------------------------------------------
42+
# (3/8) Build & Test base
43+
# -----------------------------------------------------------------------------------------------
44+
base:
45+
needs:
46+
- params
47+
- configure
48+
uses: ./.github/workflows/zzz-reuse-build.yml
49+
with:
50+
enabled: true
51+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
52+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
53+
has_refs: ${{ needs.configure.outputs.has_refs }}
54+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
55+
flavour: base
56+
secrets:
57+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
58+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
59+
60+
61+
# -----------------------------------------------------------------------------------------------
62+
# (4/8) Build & Test mods
63+
# -----------------------------------------------------------------------------------------------
64+
mods:
65+
needs:
66+
- params
67+
- configure
68+
- base
69+
uses: ./.github/workflows/zzz-reuse-build.yml
70+
with:
71+
enabled: true
72+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
73+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
74+
has_refs: ${{ needs.configure.outputs.has_refs }}
75+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
76+
flavour: mods
77+
secrets:
78+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
79+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
80+
81+
82+
# -----------------------------------------------------------------------------------------------
83+
# (5/8) Build & Test prod
84+
# -----------------------------------------------------------------------------------------------
85+
prod:
86+
needs:
87+
- params
88+
- configure
89+
- base
90+
- mods
91+
uses: ./.github/workflows/zzz-reuse-build.yml
92+
with:
93+
enabled: true
94+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
95+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
96+
has_refs: ${{ needs.configure.outputs.has_refs }}
97+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
98+
flavour: prod
99+
secrets:
100+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
101+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
102+
103+
104+
# -----------------------------------------------------------------------------------------------
105+
# (6/8) Build & Test work
106+
# -----------------------------------------------------------------------------------------------
107+
work:
108+
needs:
109+
- params
110+
- configure
111+
- base
112+
- mods
113+
- prod
114+
uses: ./.github/workflows/zzz-reuse-build.yml
115+
with:
116+
enabled: true
117+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
118+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
119+
has_refs: ${{ needs.configure.outputs.has_refs }}
120+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
121+
flavour: work
122+
secrets:
123+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
124+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
125+
126+
127+
# -----------------------------------------------------------------------------------------------
128+
# (7/8) Push images
129+
# -----------------------------------------------------------------------------------------------
130+
push-image:
131+
needs:
132+
- params
133+
- configure
134+
- base
135+
- mods
136+
- prod
137+
- work
138+
uses: ./.github/workflows/zzz-reuse-deploy-images.yml
139+
with:
140+
enabled: true
141+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
142+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
143+
has_refs: ${{ needs.configure.outputs.has_refs }}
144+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
145+
secrets:
146+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
147+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
148+
149+
150+
# -----------------------------------------------------------------------------------------------
151+
# (8/8) Push Manifests
152+
# -----------------------------------------------------------------------------------------------
153+
push-manifest:
154+
needs:
155+
- params
156+
- configure
157+
- base
158+
- mods
159+
- prod
160+
- work
161+
- push-image
162+
uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml
163+
with:
164+
enabled: true
165+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
166+
deploy_matrix: ${{ needs.configure.outputs.matrix_deploy }}
167+
params_matrix: ${{ needs.params.outputs.matrix }}
168+
has_refs: ${{ needs.configure.outputs.has_refs }}
169+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
170+
secrets:
171+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
172+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: build
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
pull_request:
14+
15+
16+
jobs:
17+
18+
# -----------------------------------------------------------------------------------------------
19+
# (1/8) Determine parameter settings
20+
# -----------------------------------------------------------------------------------------------
21+
params:
22+
uses: ./.github/workflows/params.yml
23+
# Only run for forks (contributor)
24+
if: github.event.pull_request.head.repo.fork
25+
26+
27+
# -----------------------------------------------------------------------------------------------
28+
# (2/8) Configure Build and Deploy Matrices
29+
# -----------------------------------------------------------------------------------------------
30+
configure:
31+
needs: [params]
32+
uses: ./.github/workflows/zzz-reuse-configure.yml
33+
with:
34+
enabled: true
35+
can_deploy: false
36+
matrix: ${{ needs.params.outputs.matrix }}
37+
refs: ${{ needs.params.outputs.refs }}
38+
secrets:
39+
dockerhub_username: ""
40+
dockerhub_password: ""
41+
42+
43+
# -----------------------------------------------------------------------------------------------
44+
# (3/8) Build & Test base
45+
# -----------------------------------------------------------------------------------------------
46+
base:
47+
needs:
48+
- params
49+
- configure
50+
uses: ./.github/workflows/zzz-reuse-build.yml
51+
with:
52+
enabled: true
53+
can_deploy: false
54+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
55+
has_refs: ${{ needs.configure.outputs.has_refs }}
56+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
57+
flavour: base
58+
secrets:
59+
dockerhub_username: ""
60+
dockerhub_password: ""
61+
62+
63+
# -----------------------------------------------------------------------------------------------
64+
# (4/8) Build & Test mods
65+
# -----------------------------------------------------------------------------------------------
66+
mods:
67+
needs:
68+
- params
69+
- configure
70+
- base
71+
uses: ./.github/workflows/zzz-reuse-build.yml
72+
with:
73+
enabled: true
74+
can_deploy: false
75+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
76+
has_refs: ${{ needs.configure.outputs.has_refs }}
77+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
78+
flavour: mods
79+
secrets:
80+
dockerhub_username: ""
81+
dockerhub_password: ""
82+
83+
84+
# -----------------------------------------------------------------------------------------------
85+
# (5/8) Build & Test prod
86+
# -----------------------------------------------------------------------------------------------
87+
prod:
88+
needs:
89+
- params
90+
- configure
91+
- base
92+
- mods
93+
uses: ./.github/workflows/zzz-reuse-build.yml
94+
with:
95+
enabled: true
96+
can_deploy: false
97+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
98+
has_refs: ${{ needs.configure.outputs.has_refs }}
99+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
100+
flavour: prod
101+
secrets:
102+
dockerhub_username: ""
103+
dockerhub_password: ""
104+
105+
106+
# -----------------------------------------------------------------------------------------------
107+
# (6/8) Build & Test work
108+
# -----------------------------------------------------------------------------------------------
109+
work:
110+
needs:
111+
- params
112+
- configure
113+
- base
114+
- mods
115+
- prod
116+
uses: ./.github/workflows/zzz-reuse-build.yml
117+
with:
118+
enabled: true
119+
can_deploy: false
120+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
121+
has_refs: ${{ needs.configure.outputs.has_refs }}
122+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
123+
flavour: work
124+
secrets:
125+
dockerhub_username: ""
126+
dockerhub_password: ""
127+
128+
129+
# -----------------------------------------------------------------------------------------------
130+
# (7/8) Push images
131+
# -----------------------------------------------------------------------------------------------
132+
push-image:
133+
needs:
134+
- params
135+
- configure
136+
- base
137+
- mods
138+
- prod
139+
- work
140+
uses: ./.github/workflows/zzz-reuse-deploy-images.yml
141+
with:
142+
enabled: true
143+
can_deploy: false
144+
build_matrix: ${{ needs.configure.outputs.matrix_build }}
145+
has_refs: ${{ needs.configure.outputs.has_refs }}
146+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
147+
secrets:
148+
dockerhub_username: ""
149+
dockerhub_password: ""
150+
151+
152+
# -----------------------------------------------------------------------------------------------
153+
# (8/8) Push Manifests
154+
# -----------------------------------------------------------------------------------------------
155+
push-manifest:
156+
needs:
157+
- params
158+
- configure
159+
- base
160+
- mods
161+
- prod
162+
- work
163+
- push-image
164+
uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml
165+
with:
166+
enabled: true
167+
can_deploy: false
168+
deploy_matrix: ${{ needs.configure.outputs.matrix_deploy }}
169+
params_matrix: ${{ needs.params.outputs.matrix }}
170+
has_refs: ${{ needs.configure.outputs.has_refs }}
171+
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
172+
secrets:
173+
dockerhub_username: ""
174+
dockerhub_password: ""

0 commit comments

Comments
 (0)