Skip to content

Commit

Permalink
Refactor Docker Hub push and image inspection in multi-build.yaml wor…
Browse files Browse the repository at this point in the history
…kflow
  • Loading branch information
ngeorger committed Apr 11, 2024
1 parent 21c4b37 commit 36a5f7d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/multi-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ jobs:
name: Push to Docker Hub
continue-on-error: true
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.DOCKER_IMAGE }}@sha256:%s ' *)
-
name: Inspect image
continue-on-error: true
run: |
docker buildx imagetools inspect ${{ env.DOCKER_IMAGE }}:${{ steps.meta.outputs.version }}
docker buildx imagetools create \
--tag ${{ env.DOCKER_IMAGE }}:${{ steps.meta.outputs.version }} \
${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

0 comments on commit 36a5f7d

Please sign in to comment.