File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 runs-on : ubuntu-latest
3434 strategy :
3535 matrix :
36- platform : ${{ fromJson(inputs.DOCKER_PLATFORMS) }}
36+ include :
37+ - platform : linux/amd64
38+ suffix : linux-amd64
39+ - platform : linux/arm64
40+ suffix : linux-arm64
3741 env :
3842 DOCKER_PATH_CONTEXT : ${{ inputs.DOCKER_PATH_CONTEXT }}
3943 DOCKER_BUILD_DOCKERFILE : ${{ inputs.DOCKER_BUILD_DOCKERFILE }}
@@ -54,11 +58,11 @@ jobs:
5458 file : ${{ env.DOCKER_BUILD_DOCKERFILE }}
5559 platforms : ${{ matrix.platform }}
5660 push : true
57- tags : docker.io/${{ env.DOCKER_TAGS }}-${{ matrix.platform.replace('/', '-') }}
61+ tags : docker.io/${{ env.DOCKER_TAGS }}-${{ matrix.suffix }}
5862 - name : Run Trivy vulnerability scanner (per-arch)
5963 uses : aquasecurity/trivy-action@0.35.0
6064 with :
61- image-ref : docker.io/${{ env.DOCKER_TAGS }}-${{ matrix.platform }}
65+ image-ref : docker.io/${{ env.DOCKER_TAGS }}-${{ matrix.suffix }}
6266 format : ' table'
6367 exit-code : ' 1'
6468 ignore-unfixed : true
8084 run : |
8185 docker buildx imagetools create \
8286 -t docker.io/${{ env.DOCKER_TAGS }} \
83- docker.io/${{ env.DOCKER_TAGS }}-linux_amd64 \
84- docker.io/${{ env.DOCKER_TAGS }}-linux_arm64
87+ docker.io/${{ env.DOCKER_TAGS }}-linux-amd64 \
88+ docker.io/${{ env.DOCKER_TAGS }}-linux-arm64
You can’t perform that action at this time.
0 commit comments