From ee2c0d6482bdb7469e546924b02ac974e06c5fc5 Mon Sep 17 00:00:00 2001 From: jordan Date: Thu, 29 Jan 2026 01:07:49 -0700 Subject: [PATCH] fix: Use repo/tags format for Kaniko plugin (not destinations) The destinations format caused Kaniko to push images with the full registry URL as part of the repo path (registry.threesix.ai/name instead of just name). Using registry + repo + tags format pushes to the correct path. Co-Authored-By: Claude Opus 4.5 --- .../k8s/base/templates/astro-landing/.woodpecker.yml | 8 +++++--- deployments/k8s/base/templates/default/.woodpecker.yml | 8 +++++--- deployments/k8s/base/templates/go-api/.woodpecker.yml | 8 +++++--- .../templates/templates/astro-landing/.woodpecker.yml | 8 +++++--- .../adapter/templates/templates/default/.woodpecker.yml | 8 +++++--- .../adapter/templates/templates/go-api/.woodpecker.yml | 8 +++++--- 6 files changed, 30 insertions(+), 18 deletions(-) diff --git a/deployments/k8s/base/templates/astro-landing/.woodpecker.yml b/deployments/k8s/base/templates/astro-landing/.woodpecker.yml index cfdeba2..4f2d84f 100644 --- a/deployments/k8s/base/templates/astro-landing/.woodpecker.yml +++ b/deployments/k8s/base/templates/astro-landing/.woodpecker.yml @@ -16,9 +16,11 @@ steps: docker: image: woodpeckerci/plugin-kaniko settings: - destinations: - - registry.threesix.ai/{{PROJECT_NAME}}:latest - - registry.threesix.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} + registry: registry.threesix.ai + repo: "{{PROJECT_NAME}}" + tags: + - latest + - ${CI_COMMIT_SHA:0:8} cache: true skip-tls-verify: true when: diff --git a/deployments/k8s/base/templates/default/.woodpecker.yml b/deployments/k8s/base/templates/default/.woodpecker.yml index 716d9e4..2105b9b 100644 --- a/deployments/k8s/base/templates/default/.woodpecker.yml +++ b/deployments/k8s/base/templates/default/.woodpecker.yml @@ -2,9 +2,11 @@ steps: docker: image: woodpeckerci/plugin-kaniko settings: - destinations: - - registry.threesix.ai/{{PROJECT_NAME}}:latest - - registry.threesix.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} + registry: registry.threesix.ai + repo: "{{PROJECT_NAME}}" + tags: + - latest + - ${CI_COMMIT_SHA:0:8} cache: true skip-tls-verify: true when: diff --git a/deployments/k8s/base/templates/go-api/.woodpecker.yml b/deployments/k8s/base/templates/go-api/.woodpecker.yml index 979e73a..7eb3f66 100644 --- a/deployments/k8s/base/templates/go-api/.woodpecker.yml +++ b/deployments/k8s/base/templates/go-api/.woodpecker.yml @@ -16,9 +16,11 @@ steps: docker: image: woodpeckerci/plugin-kaniko settings: - destinations: - - registry.threesix.ai/{{PROJECT_NAME}}:latest - - registry.threesix.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} + registry: registry.threesix.ai + repo: "{{PROJECT_NAME}}" + tags: + - latest + - ${CI_COMMIT_SHA:0:8} cache: true skip-tls-verify: true when: diff --git a/internal/adapter/templates/templates/astro-landing/.woodpecker.yml b/internal/adapter/templates/templates/astro-landing/.woodpecker.yml index cfdeba2..4f2d84f 100644 --- a/internal/adapter/templates/templates/astro-landing/.woodpecker.yml +++ b/internal/adapter/templates/templates/astro-landing/.woodpecker.yml @@ -16,9 +16,11 @@ steps: docker: image: woodpeckerci/plugin-kaniko settings: - destinations: - - registry.threesix.ai/{{PROJECT_NAME}}:latest - - registry.threesix.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} + registry: registry.threesix.ai + repo: "{{PROJECT_NAME}}" + tags: + - latest + - ${CI_COMMIT_SHA:0:8} cache: true skip-tls-verify: true when: diff --git a/internal/adapter/templates/templates/default/.woodpecker.yml b/internal/adapter/templates/templates/default/.woodpecker.yml index 716d9e4..2105b9b 100644 --- a/internal/adapter/templates/templates/default/.woodpecker.yml +++ b/internal/adapter/templates/templates/default/.woodpecker.yml @@ -2,9 +2,11 @@ steps: docker: image: woodpeckerci/plugin-kaniko settings: - destinations: - - registry.threesix.ai/{{PROJECT_NAME}}:latest - - registry.threesix.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} + registry: registry.threesix.ai + repo: "{{PROJECT_NAME}}" + tags: + - latest + - ${CI_COMMIT_SHA:0:8} cache: true skip-tls-verify: true when: diff --git a/internal/adapter/templates/templates/go-api/.woodpecker.yml b/internal/adapter/templates/templates/go-api/.woodpecker.yml index 979e73a..7eb3f66 100644 --- a/internal/adapter/templates/templates/go-api/.woodpecker.yml +++ b/internal/adapter/templates/templates/go-api/.woodpecker.yml @@ -16,9 +16,11 @@ steps: docker: image: woodpeckerci/plugin-kaniko settings: - destinations: - - registry.threesix.ai/{{PROJECT_NAME}}:latest - - registry.threesix.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} + registry: registry.threesix.ai + repo: "{{PROJECT_NAME}}" + tags: + - latest + - ${CI_COMMIT_SHA:0:8} cache: true skip-tls-verify: true when: