@@ -54,10 +54,28 @@ jobs:
5454 has_refs : ${{ needs.configure.outputs.has_refs }}
5555 artifact_prefix : ${{ needs.configure.outputs.artifact_prefix }}
5656 flavour : base
57+ run_tests : true
5758 secrets :
5859 dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
5960 dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
6061
62+ # base-test:
63+ # needs:
64+ # - params
65+ # - configure
66+ # - base
67+ # uses: ./.github/workflows/zzz-reuse-test.yml
68+ # with:
69+ # enabled: true
70+ # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
71+ # build_matrix: ${{ needs.configure.outputs.matrix_build }}
72+ # has_refs: ${{ needs.configure.outputs.has_refs }}
73+ # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
74+ # flavour: base
75+ # secrets:
76+ # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
77+ # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
78+
6179
6280 # -----------------------------------------------------------------------------------------------
6381 # (4/8) Build & Test mods
6886 - configure
6987 - base
7088 uses : ./.github/workflows/zzz-reuse-build.yml
89+ with :
90+ enabled : true
91+ can_deploy : ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
92+ build_matrix : ${{ needs.configure.outputs.matrix_build }}
93+ has_refs : ${{ needs.configure.outputs.has_refs }}
94+ artifact_prefix : ${{ needs.configure.outputs.artifact_prefix }}
95+ flavour : mods
96+ run_tests : false
97+ secrets :
98+ dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
99+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
100+
101+ mods-test :
102+ needs :
103+ - params
104+ - configure
105+ - base
106+ - mods
107+ uses : ./.github/workflows/zzz-reuse-test.yml
71108 with :
72109 enabled : true
73110 can_deploy : ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
89126 - configure
90127 - base
91128 - mods
129+ - mods-test
92130 uses : ./.github/workflows/zzz-reuse-build.yml
93131 with :
94132 enabled : true
@@ -97,10 +135,32 @@ jobs:
97135 has_refs : ${{ needs.configure.outputs.has_refs }}
98136 artifact_prefix : ${{ needs.configure.outputs.artifact_prefix }}
99137 flavour : prod
138+ run_tests : true
100139 secrets :
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
@@ -120,10 +180,34 @@ jobs:
120180 has_refs : ${{ needs.configure.outputs.has_refs }}
121181 artifact_prefix : ${{ needs.configure.outputs.artifact_prefix }}
122182 flavour : work
183+ run_tests : true
123184 secrets :
124185 dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
125186 dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
126187
188+ # work-test:
189+ # needs:
190+ # - params
191+ # - configure
192+ # - base
193+ # - base-test
194+ # - mods
195+ # - mods-test
196+ # - prod
197+ # - prod-test
198+ # - work
199+ # uses: ./.github/workflows/zzz-reuse-test.yml
200+ # with:
201+ # enabled: true
202+ # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
203+ # build_matrix: ${{ needs.configure.outputs.matrix_build }}
204+ # has_refs: ${{ needs.configure.outputs.has_refs }}
205+ # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
206+ # flavour: work
207+ # secrets:
208+ # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
209+ # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
210+
127211
128212 # -----------------------------------------------------------------------------------------------
129213 # (7/8) Push images
0 commit comments