2121 outputs :
2222 go_code_md5 : ${{ steps.vars.outputs.go_code_md5 }}
2323 docker_md5 : ${{ steps.vars.outputs.docker_md5 }}
24+ image_matrix_oss : ${{ steps.vars.outputs.image_matrix_oss }}
25+ image_matrix_plus : ${{ steps.vars.outputs.image_matrix_plus }}
26+ image_matrix_nap : ${{ steps.vars.outputs.image_matrix_nap }}
2427 steps :
2528 - name : Checkout Repository
2629 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
@@ -30,21 +33,17 @@ jobs:
3033 run : |
3134 ./.github/scripts/variables.sh go_code_md5 >> $GITHUB_OUTPUT
3235 ./.github/scripts/variables.sh docker_md5 >> $GITHUB_OUTPUT
33- source .github/data/version.txt
36+ echo "image_matrix_oss=$(cat .github/data/matrix-images-oss.json | jq -c)" >> $GITHUB_OUTPUT
37+ echo "image_matrix_plus=$(cat .github/data/matrix-images-plus.json | jq -c)" >> $GITHUB_OUTPUT
38+ echo "image_matrix_nap=$(cat .github/data/matrix-images-nap.json | jq -c)" >> $GITHUB_OUTPUT
3439 cat $GITHUB_OUTPUT
3540
3641 build-docker :
3742 name : Build Docker OSS
3843 needs : [checks]
3944 strategy :
4045 fail-fast : false
41- matrix :
42- image : [debian, alpine]
43- platforms :
44- ["linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"]
45- include :
46- - image : ubi
47- platforms : " linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
46+ matrix : ${{ fromJSON( needs.checks.outputs.image_matrix_oss ) }}
4847 uses : ./.github/workflows/build-oss.yml
4948 with :
5049 platforms : ${{ matrix.platforms }}
6867 needs : [checks]
6968 strategy :
7069 fail-fast : false
71- matrix :
72- image : [debian-plus, alpine-plus, alpine-plus-fips]
73- platforms : ["linux/arm64, linux/amd64"]
74- target : [goreleaser, aws]
75- include :
76- - image : ubi-plus
77- platforms : " linux/arm64, linux/amd64, linux/s390x"
78- target : goreleaser
70+ matrix : ${{ fromJSON( needs.checks.outputs.image_matrix_plus ) }}
7971 uses : ./.github/workflows/build-plus.yml
8072 with :
8173 platforms : ${{ matrix.platforms }}
9890 needs : [checks]
9991 strategy :
10092 fail-fast : false
101- matrix :
102- image : [debian-plus-nap]
103- platforms : ["linux/amd64"]
104- target : [goreleaser, aws]
105- nap_modules : [dos, waf, "waf,dos"]
106- include :
107- - image : ubi-9-plus-nap
108- target : goreleaser
109- platforms : " linux/amd64"
110- nap_modules : waf
111- - image : ubi-8-plus-nap
112- target : goreleaser
113- platforms : " linux/amd64"
114- nap_modules : dos
115- - image : ubi-8-plus-nap
116- target : goreleaser
117- platforms : " linux/amd64"
118- nap_modules : " waf,dos"
119- - image : ubi-9-plus-nap
120- target : aws
121- platforms : " linux/amd64"
122- nap_modules : waf
123- - image : ubi-8-plus-nap
124- target : aws
125- platforms : " linux/amd64"
126- nap_modules : dos
127- - image : ubi-8-plus-nap
128- target : aws
129- platforms : " linux/amd64"
130- nap_modules : " waf,dos"
131- - image : alpine-plus-nap-fips
132- target : goreleaser
133- platforms : " linux/amd64"
134- nap_modules : waf
135- - image : alpine-plus-nap-v5-fips
136- target : goreleaser
137- platforms : " linux/amd64"
138- nap_modules : waf
139- - image : debian-plus-nap-v5
140- target : goreleaser
141- platforms : " linux/amd64"
142- nap_modules : waf
143- - image : ubi-9-plus-nap-v5
144- target : goreleaser
145- platforms : " linux/amd64"
146- nap_modules : waf
147- - image : ubi-8-plus-nap-v5
148- target : goreleaser
149- platforms : " linux/amd64"
150- nap_modules : waf
93+ matrix : ${{ fromJSON( needs.checks.outputs.image_matrix_nap ) }}
15194 uses : ./.github/workflows/build-plus.yml
15295 with :
15396 platforms : ${{ matrix.platforms }}
0 commit comments