fix: iterate tags via env var and while read to handle newlines
Some checks failed
Docker / build (push) Failing after 19m11s

This commit is contained in:
2026-06-29 15:38:00 +02:00
parent f121f7f7f4
commit c60b48fcd1

View File

@@ -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 \