Skip to content

Commit

Permalink
fix primary manifest push
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Sep 3, 2024
1 parent 28e1b5f commit d524ae5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish_docker_matrix_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,10 @@ jobs:
if: ${{ github.event_name != 'pull_request' && inputs.primary_image }}
working-directory: /tmp/digests/${{ github.sha }}
run: |
suffix="${{ inputs.system }}"
# Extract original tags
original_tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
# Remove suffix and create a modified tag list
modified_tags=$(jq -cr '.tags | map("-t " + sub("_" + $suffix + "$"; "")) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
modified_tags=$(jq -cr '.tags | map("-t " + sub("_${{ inputs.system }}$"; "")) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
# Combine original and modified tags
all_tags="$original_tags $modified_tags"
docker buildx imagetools create $all_tags \
Expand Down

0 comments on commit d524ae5

Please sign in to comment.