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