5858 dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
5959 dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
6060
61+ base-test :
62+ needs :
63+ - params
64+ - configure
65+ - base
66+ uses : ./.github/workflows/zzz-reuse-test.yml
67+ with :
68+ enabled : true
69+ can_deploy : ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
70+ build_matrix : ${{ needs.configure.outputs.matrix_build }}
71+ has_refs : ${{ needs.configure.outputs.has_refs }}
72+ artifact_prefix : ${{ needs.configure.outputs.artifact_prefix }}
73+ flavour : base
74+ secrets :
75+ dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
76+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
77+
6178
6279 # -----------------------------------------------------------------------------------------------
6380 # (4/8) Build & Test mods
6784 - params
6885 - configure
6986 - base
87+ - base-test
7088 uses : ./.github/workflows/zzz-reuse-build.yml
7189 with :
7290 enabled : true
7997 dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
8098 dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
8199
100+ mods-test :
101+ needs :
102+ - params
103+ - configure
104+ - base
105+ - base-test
106+ - mods
107+ uses : ./.github/workflows/zzz-reuse-test.yml
108+ with :
109+ enabled : true
110+ can_deploy : ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
111+ build_matrix : ${{ needs.configure.outputs.matrix_build }}
112+ has_refs : ${{ needs.configure.outputs.has_refs }}
113+ artifact_prefix : ${{ needs.configure.outputs.artifact_prefix }}
114+ flavour : mods
115+ secrets :
116+ dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
117+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
118+
82119
83120 # -----------------------------------------------------------------------------------------------
84121 # (5/8) Build & Test prod
88125 - params
89126 - configure
90127 - base
128+ - base-test
91129 - mods
130+ - mods-test
92131 uses : ./.github/workflows/zzz-reuse-build.yml
93132 with :
94133 enabled : true
@@ -101,6 +140,27 @@ jobs:
101140 dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
102141 dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
103142
143+ prod-test :
144+ needs :
145+ - params
146+ - configure
147+ - base
148+ - base-test
149+ - mods
150+ - mods-test
151+ - prod
152+ uses : ./.github/workflows/zzz-reuse-test.yml
153+ with :
154+ enabled : true
155+ can_deploy : ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
156+ build_matrix : ${{ needs.configure.outputs.matrix_build }}
157+ has_refs : ${{ needs.configure.outputs.has_refs }}
158+ artifact_prefix : ${{ needs.configure.outputs.artifact_prefix }}
159+ flavour : prod
160+ secrets :
161+ dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
162+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
163+
104164
105165 # -----------------------------------------------------------------------------------------------
106166 # (6/8) Build & Test work
@@ -110,8 +170,11 @@ jobs:
110170 - params
111171 - configure
112172 - base
173+ - base-test
113174 - mods
175+ - mods-test
114176 - prod
177+ - prod-test
115178 uses : ./.github/workflows/zzz-reuse-build.yml
116179 with :
117180 enabled : true
@@ -124,6 +187,29 @@ jobs:
124187 dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
125188 dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
126189
190+ work-test :
191+ needs :
192+ - params
193+ - configure
194+ - base
195+ - base-test
196+ - mods
197+ - mods-test
198+ - prod
199+ - prod-test
200+ - work
201+ uses : ./.github/workflows/zzz-reuse-test.yml
202+ with :
203+ enabled : true
204+ can_deploy : ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
205+ build_matrix : ${{ needs.configure.outputs.matrix_build }}
206+ has_refs : ${{ needs.configure.outputs.has_refs }}
207+ artifact_prefix : ${{ needs.configure.outputs.artifact_prefix }}
208+ flavour : work
209+ secrets :
210+ dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
211+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
212+
127213
128214 # -----------------------------------------------------------------------------------------------
129215 # (7/8) Push images
@@ -133,9 +219,13 @@ jobs:
133219 - params
134220 - configure
135221 - base
222+ - base-test
136223 - mods
224+ - mods-test
137225 - prod
226+ - prod-test
138227 - work
228+ - work-test
139229 uses : ./.github/workflows/zzz-reuse-deploy-images.yml
140230 with :
141231 enabled : true
@@ -156,9 +246,13 @@ jobs:
156246 - params
157247 - configure
158248 - base
249+ - base-test
159250 - mods
251+ - mods-test
160252 - prod
253+ - prod-test
161254 - work
255+ - work-test
162256 - push-image
163257 uses : ./.github/workflows/zzz-reuse-deploy-manifests.yml
164258 with :
0 commit comments