Skip to content

Commit

Permalink
CI: Fix build step for images with multiple tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
csadorf committed Sep 15, 2022
1 parent e9bce34 commit 4aa7492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
run: |
targets=$(echo "${BAKE_METADATA}"| jq -c 'keys')
echo "::set-output name=targets::${targets}"
images=$(echo "${BAKE_METADATA}"| jq -c '. as $base |[to_entries[] |{"key": (.key|ascii_upcase|sub("-"; "_"; "g") + "_IMAGE"), "value": [.value."image.name",.value."containerimage.digest"]|join("@")}] |from_entries')
images=$(echo "${BAKE_METADATA}"| jq -c '. as $base |[to_entries[] |{"key": (.key|ascii_upcase|sub("-"; "_"; "g") + "_IMAGE"), "value": [(.value."image.name"|split(",")[0]),.value."containerimage.digest"]|join("@")}] |from_entries')
echo "::set-output name=images::${images}"
test:
Expand Down

0 comments on commit 4aa7492

Please sign in to comment.