diff --git a/.github/workflows/build_containers.yaml b/.github/workflows/build_containers.yaml index 58d4f51..c1f772b 100644 --- a/.github/workflows/build_containers.yaml +++ b/.github/workflows/build_containers.yaml @@ -238,11 +238,9 @@ jobs: shell: bash run: | # Prepare tags - TAGS=$(printf "%s" '${{ steps.meta2.outputs.tags }}' | tr '\n' ' ' | sed 's/ *$//') - TAG_ARGS="" - for tag in "$TAGS"; do - TAG_ARGS="$TAG_ARGS -t $tag" - done + echo '${{ steps.meta2.outputs.tags }}' > /tmp/tags + cat /tmp/tags | xargs -i bash -c 'printf "%s" "-t {} " >> /tmp/tagargs' + TAG_ARGS="$(cat /tmp/tagargs)" # Add R version tags for ghcr.io images if [[ "${{ matrix.base.image }}" == *"ghcr.io"* ]]; then