fix: iterate tags via env var and while read to handle newlines
Some checks failed
Docker / build (push) Failing after 19m11s
Some checks failed
Docker / build (push) Failing after 19m11s
This commit is contained in:
@@ -76,8 +76,10 @@ jobs:
|
||||
if: github.event_name != 'pull_request'
|
||||
env:
|
||||
CREDS: ${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASSWORD }}
|
||||
TAGS: ${{ steps.meta.outputs.tags }}
|
||||
run: |
|
||||
for tag in ${{ steps.meta.outputs.tags }}; do
|
||||
echo "$TAGS" | while IFS= read -r tag; do
|
||||
[ -z "$tag" ] && continue
|
||||
skopeo copy --all \
|
||||
oci-archive:/tmp/lmr-standard.tar \
|
||||
docker://$tag \
|
||||
@@ -88,8 +90,10 @@ jobs:
|
||||
if: github.event_name != 'pull_request'
|
||||
env:
|
||||
CREDS: ${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASSWORD }}
|
||||
TAGS: ${{ steps.meta-bundled.outputs.tags }}
|
||||
run: |
|
||||
for tag in ${{ steps.meta-bundled.outputs.tags }}; do
|
||||
echo "$TAGS" | while IFS= read -r tag; do
|
||||
[ -z "$tag" ] && continue
|
||||
skopeo copy --all \
|
||||
oci-archive:/tmp/lmr-bundled.tar \
|
||||
docker://$tag \
|
||||
|
||||
Reference in New Issue
Block a user