Skip to content

Commit

Permalink
💚 Fix multi-tag docker builds
Browse files Browse the repository at this point in the history
Redhat requires a space-delimited list
  • Loading branch information
aaronleopold committed Sep 6, 2024
1 parent fe35819 commit d663f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:

- name: Format tags
run: |
echo "FORMATTED_TAGS=$(echo ${{ inputs.tags }} | sed -e 's/,/,aaronleopold\/stump:/g' | sed -e 's/^/aaronleopold\/stump:/')" >> $GITHUB_ENV
echo "FORMATTED_TAGS=$(echo ${{ inputs.tags }} | sed -e 's/,/ /g')" >> $GITHUB_ENV
echo "LOCAL_IMAGES=$(echo ${{ inputs.tags }} | sed -e 's/,/,localhost\/stump:/g' | sed -e 's/^/localhost\/stump:/')" >> $GITHUB_ENV
shell: bash

Expand Down Expand Up @@ -86,7 +86,7 @@ runs:
uses: redhat-actions/buildah-build@v2
with:
image: stump
tags: ${{ inputs.tags }}
tags: ${{ env.FORMATTED_TAGS }}
archs: ${{ inputs.archs }}
build-args: |
GIT_REV=${{ env.GIT_REV }}
Expand Down

0 comments on commit d663f5c

Please sign in to comment.