Skip to content

Commit

Permalink
Use jq instead of GH join
Browse files Browse the repository at this point in the history
  • Loading branch information
cromefire committed Oct 22, 2023
1 parent 65486f1 commit a8db811
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ jobs:
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: |
RAW_TAGS="$(jq -cr '.tags | split("\n") | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")"
TAGS=""
for RAW_TAG in "${{ steps.meta.outputs.tags }}"; do
for RAW_TAG in ${RAW_TAGS}; do
TAGS="${TAGS}$(printf "${RAW_TAG}@sha256:%s " *)"
done
for TAG in ${TAGS}; do
Expand All @@ -232,7 +233,8 @@ jobs:
- name: Inspect image
run: |
for RAW_TAG in "${{ steps.meta.outputs.tags }}"; do
RAW_TAGS="$(jq -cr '.tags | split("\n") | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")"
for RAW_TAG in ${RAW_TAGS}; do
echo "Inspecting ${RAW_TAG}"
docker buildx imagetools inspect "${RAW_TAG}"
done

0 comments on commit a8db811

Please sign in to comment.