File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ jobs:
3535 GOARCH : s390x
3636 - GOOS : darwin
3737 GOARCH : ppc64le
38- - GOOS : windows
39- GOARCH : arm64
4038 - GOOS : darwin
4139 GOARCH : arm
40+ - GOOS : windows
41+ GOARCH : arm64
4242 - GOOS : windows
4343 GOARCH : arm
4444 - GOOS : windows
@@ -184,6 +184,7 @@ jobs:
184184 if-no-files-found : error
185185
186186 - name : Build container images locally
187+ if : contains(fromJSON(steps.build-snapshot.outputs.artifacts).*.type, "Docker Image")
187188 uses : docker/build-push-action@0adf9959216b96bec444f325f1e493d4aa344497 # v6.14.0
188189 env :
189190 VERSION : ${{ fromJSON(steps.build-snapshot.outputs.metadata).version }}
@@ -195,13 +196,15 @@ jobs:
195196 tags : ${{ inputs.distribution }}:${{ env.VERSION }}-${{ env.ARCH }}
196197
197198 - name : Export container image to tarball
199+ if : contains(fromJSON(steps.build-snapshot.outputs.artifacts).*.type, "Docker Image")
198200 env :
199201 VERSION : ${{ fromJSON(steps.build-snapshot.outputs.metadata).version }}
200202 ARCH : ${{ fromJSON(steps.build-snapshot.outputs.metadata).runtime.goos }}-${{ fromJSON(steps.build-snapshot.outputs.metadata).runtime.goarch }}
201203 run : |
202204 docker save ${{ inputs.distribution }}:${{ env.VERSION }}-${{ env.ARCH }} > /tmp/${{ inputs.distribution }}.tar
203205
204206 - name : Upload container image artifact
207+ if : contains(fromJSON(steps.build-snapshot.outputs.artifacts).*.type, "Docker Image")
205208 uses : actions/upload-artifact@v4
206209 env :
207210 VERSION : ${{ fromJSON(steps.build-snapshot.outputs.metadata).version }}
You can’t perform that action at this time.
0 commit comments