Skip to content

Commit

Permalink
Fix alias array handlign
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Jan 16, 2025
1 parent ba3d077 commit d47f745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: setup_platform
run: |
ruby_platform=$(echo '${{ matrix.toolchain.ruby-platform }}')
aliases=$(echo '${{ matrix.toolchain.aliases }}')
aliases=$(echo '${{ toJSON(matrix.toolchain.aliases) }}' | jq -r 'if . == null then "" else join(" ") end')
echo "ruby_platform=$ruby_platform" >> $GITHUB_ENV
echo "aliases=$aliases" >> $GITHUB_ENV
Expand Down Expand Up @@ -80,8 +80,8 @@ jobs:
aliases="${{ env.aliases }}"
images="${{ secrets.DOCKER_HUB_USERNAME }}/${{ env.ruby_platform }}"
for alias in ${{ env.aliases }}; do
images+="${{ secrets.DOCKER_HUB_USERNAME }}/$alias"$'\n'
for alias in "${{ env.aliases }}"; do
images+=",${{ secrets.DOCKER_HUB_USERNAME }}/$alias"
done
printf "images=%s\n" "$images" >> $GITHUB_ENV
Expand Down

0 comments on commit d47f745

Please sign in to comment.