Skip to content

Commit

Permalink
ci: replace xargs with while read
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl committed Oct 19, 2023
1 parent 84f8f67 commit 986ae24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,4 @@ jobs:
env:
TAGS: ${{ needs.build.outputs.image-tags }}
run: |
# shellcheck disable=SC2016
echo "${TAGS}" | xargs -I {} sh -c 'crane copy "$1" "${1/ghcr.io/docker.io}"' -- {}
echo "${TAGS}" | while read tag; do crane copy "$tag" "${tag/ghcr.io/docker.io}"; done

0 comments on commit 986ae24

Please sign in to comment.