From 21123051650d60782c9b8469fc53041dd654898c Mon Sep 17 00:00:00 2001 From: camilesing Date: Fri, 11 Sep 2026 16:36:55 +0800 Subject: [PATCH] fix(ci): indent tag-generation lines that broke workflow YAML parse --- .github/workflows/docker-publish.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4721e55..bd3337c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -85,17 +85,14 @@ jobs: for svc in manager executor gateway; do TAGS="" if [ "$HUB" = "1" ]; then - TAGS="$TAGS -camilesing/datapoly-$svc:$V" - [ "$PRE" = "false" ] && TAGS="$TAGS -camilesing/datapoly-$svc:latest" + TAGS="$(printf '%s\n' "$TAGS" "camilesing/datapoly-$svc:$V")" + if [ "$PRE" = "false" ]; then TAGS="$(printf '%s\n' "$TAGS" "camilesing/datapoly-$svc:latest")"; fi fi if [ "$ALI" = "1" ]; then - TAGS="$TAGS -$ALI_REGISTRY/datapoly-$svc:$V" - [ "$PRE" = "false" ] && TAGS="$TAGS -$ALI_REGISTRY/datapoly-$svc:latest" + TAGS="$(printf '%s\n' "$TAGS" "$ALI_REGISTRY/datapoly-$svc:$V")" + if [ "$PRE" = "false" ]; then TAGS="$(printf '%s\n' "$TAGS" "$ALI_REGISTRY/datapoly-$svc:latest")"; fi fi + TAGS="$(printf '%s' "$TAGS" | sed '/^$/d')" { echo "tags_$svc<