From 2a25a161cb44241867923f92958c7f4cd9e1f0ac Mon Sep 17 00:00:00 2001 From: jordan Date: Sat, 7 Feb 2026 18:08:31 -0700 Subject: [PATCH] fix: use plugin-kaniko for docs image build The raw gcr.io/kaniko-project/executor with commands: doesn't work properly in Woodpecker. Switch to woodpeckerci/plugin-kaniko with settings: to match other component builds. Co-Authored-By: Claude Opus 4.5 --- .../templates/skeleton/.woodpecker.yml.tmpl | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/internal/adapter/templates/templates/skeleton/.woodpecker.yml.tmpl b/internal/adapter/templates/templates/skeleton/.woodpecker.yml.tmpl index f843a77..9d44cd5 100644 --- a/internal/adapter/templates/templates/skeleton/.woodpecker.yml.tmpl +++ b/internal/adapter/templates/templates/skeleton/.woodpecker.yml.tmpl @@ -124,15 +124,18 @@ steps: # Build and push docs-nginx image (skipped if no docs build output) build-docs-image: - image: gcr.io/kaniko-project/executor:latest depends_on: [build-docs] - commands: - - | - if [ ! -d "docs/build" ]; then - echo "==> No docs/build/ directory, skipping image build" - exit 0 - fi - - /kaniko/executor --dockerfile=Dockerfile.nginx --context=docs --insecure --destination=registry.threesix.ai/{{PROJECT_NAME}}-docs:latest --destination=registry.threesix.ai/{{PROJECT_NAME}}-docs:${CI_COMMIT_SHA:0:8} + image: woodpeckerci/plugin-kaniko + settings: + registry: registry.threesix.ai + repo: {{PROJECT_NAME}}-docs + tags: + - latest + - ${CI_COMMIT_SHA:0:8} + context: docs + dockerfile: docs/Dockerfile.nginx + cache: true + skip-tls-verify: true when: branch: main event: push