File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ jobs:
150150
151151 # Take the digests and produce a multi-arch manifest from them.
152152 call-build-container-image-manifests :
153+ if : inputs.push
153154 permissions :
154155 contents : read
155156 packages : write
@@ -190,19 +191,19 @@ jobs:
190191
191192 - name : Create production manifest
192193 run : |
193- ${{ inputs.push && '' || 'echo' }} docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
194+ docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
194195 $(printf '${{ inputs.registry }}/${{ inputs.image }}@sha256:%s ' *)
195196 shell : bash
196197 working-directory : /tmp/production-digests
197198
198199 - name : Inspect image
199- if : inputs.push
200200 run : |
201201 docker buildx imagetools inspect ${{ inputs.registry }}/${{ inputs.image }}:${{ steps.meta.outputs.version }}
202202 shell : bash
203203
204204 # Take the digests and produce a multi-arch manifest from them.
205205 call-build-debug-container-image-manifests :
206+ if : inputs.push
206207 permissions :
207208 contents : read
208209 packages : write
@@ -242,13 +243,12 @@ jobs:
242243
243244 - name : Create debug manifest
244245 run : |
245- ${{ inputs.push && '' || 'echo' }} docker buildx imagetools create $DOCKER_PUSH_EXTRA_FLAGS $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
246+ docker buildx imagetools create $DOCKER_PUSH_EXTRA_FLAGS $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
246247 $(printf '${{ inputs.registry }}/${{ inputs.image }}@sha256:%s ' *)
247248 shell : bash
248249 working-directory : /tmp/debug-digests
249250
250251 - name : Inspect image
251- if : inputs.push
252252 run : |
253253 docker buildx imagetools inspect ${{ inputs.registry }}/${{ inputs.image }}:${{ steps.debug-meta.outputs.version }}
254254 shell : bash
You can’t perform that action at this time.
0 commit comments