fix(ci): remove backslash escapes from Gitea expressions in Build step
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:
@@ -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
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user