From 2870f1f60674650631fbb70e652ec15720b33f45 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Sun, 22 Oct 2023 22:50:49 +0200 Subject: [PATCH] No newlines after jq --- .github/workflows/docker-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index c6a9da4..b8e5e05 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -206,8 +206,8 @@ jobs: - name: Create manifest list and push working-directory: /tmp/digests run: | - jq -cr '.tags | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON" > /tmp/extra-manifest.json - TAGS="$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")" + jq -crj '.tags | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON" > /tmp/extra-manifest.json + TAGS="$(jq -crj '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")" docker buildx imagetools create -f /tmp/extra-manifest.json ${TAGS} \ $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) @@ -221,7 +221,7 @@ jobs: # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. run: | - RAW_TAGS="$(jq -cr '.tags | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")" + RAW_TAGS="$(jq -crj '.tags | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")" TAGS="" for RAW_TAG in ${RAW_TAGS}; do TAGS="${TAGS}$(printf "${RAW_TAG}@sha256:%s " *)" @@ -233,7 +233,7 @@ jobs: - name: Inspect image run: | - RAW_TAGS="$(jq -cr '.tags | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")" + RAW_TAGS="$(jq -crj '.tags | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")" for RAW_TAG in ${RAW_TAGS}; do echo "Inspecting ${RAW_TAG}" docker buildx imagetools inspect "${RAW_TAG}"