Skip to content

Commit

Permalink
DO NOT MERGE: more printf debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sengi committed May 17, 2024
1 parent 073e5fc commit 01f7168
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-and-push-multiarch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,19 @@ jobs:
working-directory: /tmp/digests
run: |

Check failure on line 202 in .github/workflows/build-and-push-multiarch-image.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2046:warning:4:74: Quote this to prevent word splitting

Check failure on line 202 in .github/workflows/build-and-push-multiarch-image.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2046:warning:5:3: Quote this to prevent word splitting

Check failure on line 202 in .github/workflows/build-and-push-multiarch-image.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2046:warning:7:33: Quote this to prevent word splitting

Check failure on line 202 in .github/workflows/build-and-push-multiarch-image.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2046:warning:8:3: Quote this to prevent word splitting

Check failure on line 202 in .github/workflows/build-and-push-multiarch-image.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2086:info:14:33: Double quote to prevent globbing and word splitting

Check failure on line 202 in .github/workflows/build-and-push-multiarch-image.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2086:info:14:39: Double quote to prevent globbing and word splitting
tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
src=$(printf "${IMAGEREF_PREFIX}@sha256:%s" *)
printf -v sources "${IMAGEREF_PREFIX}@sha256:%s " *
echo "::notice title=original command::" docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ steps.login-ecr.outputs.registry }}/${{ inputs.ecrRepositoryName }}@sha256:%s ' *)
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ steps.login-ecr.outputs.registry }}/${{ inputs.ecrRepositoryName }}@sha256:%s ' *)
echo "::notice title=tags::tags=$tags"
echo "::notice title=src::src=$src"
# shellcheck disable=SC2086 # Intentional word-splitting on $tags.
docker buildx imagetools create $tags "$src"
echo "::notice title=sources::sources=$sources"
# shellcheck disable=SC2086 # Intentional word-splitting on $tags and $sources.
echo "::notice title=broken command::" docker buildx imagetools create $tags "$sources"
docker buildx imagetools create $tags $sources
- name: Inspect Images
env:
Expand Down

0 comments on commit 01f7168

Please sign in to comment.