fix(ci): remove backslash escapes from Gitea expressions in Build step
CI - Build & Test / Backend (.NET) (push) Successful in 27s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 3s

The \$ escape before ${{ inputs.service }} prevented Gitea from
evaluating the expression, passing literal backslash to the shell.
Also use ${BUILD_ARGS} (shell expansion) instead of \$BUILD_ARGS
so the outer shell passes the actual build args to the DIND container.
This commit is contained in:
2026-06-09 21:08:33 +02:00
parent 961d096ca6
commit 045e36b014
+5 -5
View File
@@ -142,13 +142,13 @@ jobs:
docker:cli \
sh -c "
set -e
if [ -n '\${{ inputs.service }}' ]; then
echo '🚀 Deploying service: \${{ inputs.service }}'
docker compose build \$BUILD_ARGS \${{ inputs.service }}
docker compose up -d --force-recreate \${{ inputs.service }}
if [ -n '${{ inputs.service }}' ]; then
echo '🚀 Deploying service: ${{ inputs.service }}'
docker compose build ${BUILD_ARGS} ${{ inputs.service }}
docker compose up -d --force-recreate ${{ inputs.service }}
else
echo '🚀 Deploying all services'
docker compose build \$BUILD_ARGS
docker compose build ${BUILD_ARGS}
docker compose up -d --force-recreate
fi
"