fix: Use Woodpecker Kaniko plugin with destinations format

Switch from raw gcr.io/kaniko-project/executor:debug to
woodpeckerci/plugin-kaniko with destinations setting. Also use
npm install instead of npm ci (no lock file in templates) and
skip-tls-verify for self-signed registry certs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jordan 2026-01-28 21:23:28 -07:00
parent fb994269c9
commit 41aca7813c
5 changed files with 38 additions and 32 deletions

15
changelog/v0.10.5.md Normal file
View File

@ -0,0 +1,15 @@
# v0.10.5
**Released:** 2026-01-28
## Changes
Fix Kaniko templates to use Woodpecker plugin with destinations format:
- Switch from raw Kaniko executor to `woodpeckerci/plugin-kaniko`
- Use `destinations` setting for multi-tag pushes
- Use `skip-tls-verify` for self-signed registry certs
- Fix Dockerfile to use `npm install` instead of `npm ci`
---
**Image:** `ghcr.io/orchard9/rdev-api:v0.10.5`

View File

@ -2,7 +2,7 @@ steps:
install: install:
image: node:20-alpine image: node:20-alpine
commands: commands:
- npm ci - npm install
when: when:
- event: [push, pull_request] - event: [push, pull_request]
@ -14,16 +14,13 @@ steps:
- event: [push, pull_request] - event: [push, pull_request]
docker: docker:
image: gcr.io/kaniko-project/executor:debug image: woodpeckerci/plugin-kaniko
commands: settings:
- > destinations:
/kaniko/executor - zot.orchard9.ai/{{PROJECT_NAME}}:latest
--context . - zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
--dockerfile Dockerfile cache: true
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest skip-tls-verify: true
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
--cache=true
--insecure
when: when:
- event: push - event: push
branch: main branch: main

View File

@ -4,7 +4,7 @@ FROM node:20-alpine AS build
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm install
COPY . . COPY . .
RUN npm run build RUN npm run build

View File

@ -1,15 +1,12 @@
steps: steps:
docker: docker:
image: gcr.io/kaniko-project/executor:debug image: woodpeckerci/plugin-kaniko
commands: settings:
- > destinations:
/kaniko/executor - zot.orchard9.ai/{{PROJECT_NAME}}:latest
--context . - zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
--dockerfile Dockerfile cache: true
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest skip-tls-verify: true
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
--cache=true
--insecure
when: when:
- event: push - event: push
branch: main branch: main

View File

@ -14,16 +14,13 @@ steps:
- event: [push, pull_request] - event: [push, pull_request]
docker: docker:
image: gcr.io/kaniko-project/executor:debug image: woodpeckerci/plugin-kaniko
commands: settings:
- > destinations:
/kaniko/executor - zot.orchard9.ai/{{PROJECT_NAME}}:latest
--context . - zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
--dockerfile Dockerfile cache: true
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest skip-tls-verify: true
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
--cache=true
--insecure
when: when:
- event: push - event: push
branch: main branch: main