From c60b48fcd1ef8f4a6f80fdcc8bb6b27f7c2dff75 Mon Sep 17 00:00:00 2001 From: LovroG05 Date: Mon, 29 Jun 2026 15:38:00 +0200 Subject: [PATCH] fix: iterate tags via env var and while read to handle newlines --- .gitea/workflows/docker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index 756bf3a..cb1e26e 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -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 \