fix: use single-line kaniko command with proper quoting

Multiline backslash continuation may have shell expansion issues.
Using single line with quoted arguments instead.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Barry Walker
2026-01-13 16:18:12 -05:00
parent 627b9fdf6c
commit e12e095a82
+1 -6
View File
@@ -86,12 +86,7 @@ steps:
echo "Building Docker image version: $VERSION"
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"ghcr.io\":{\"username\":\"$GHCR_USERNAME\",\"password\":\"$GHCR_TOKEN\"}}}" > /kaniko/.docker/config.json
/kaniko/executor \
--context=$CI_WORKSPACE/PaperlessMCP \
--dockerfile=$CI_WORKSPACE/PaperlessMCP/Dockerfile \
--destination=ghcr.io/barryw/paperlessmcp:v${VERSION} \
--destination=ghcr.io/barryw/paperlessmcp:latest \
--build-arg=VERSION=${VERSION}
/kaniko/executor --context="$CI_WORKSPACE/PaperlessMCP" --dockerfile="$CI_WORKSPACE/PaperlessMCP/Dockerfile" --destination="ghcr.io/barryw/paperlessmcp:v$VERSION" --destination="ghcr.io/barryw/paperlessmcp:latest" --build-arg="VERSION=$VERSION"
depends_on: [version]
# Create git tag and push