From 29696ec1354a9cecab6fc2f46aa03091062bd959 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 28 Jan 2026 18:47:39 -0700 Subject: [PATCH] fix: Simplify Kaniko templates for anonymous zot registry Zot is configured without authentication, so remove the auth configuration step from templates. Added --insecure flag for internal registry access. Co-Authored-By: Claude Opus 4.5 --- .../templates/templates/astro-landing/.woodpecker.yml | 9 +-------- .../adapter/templates/templates/default/.woodpecker.yml | 9 +-------- .../adapter/templates/templates/go-api/.woodpecker.yml | 9 +-------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/internal/adapter/templates/templates/astro-landing/.woodpecker.yml b/internal/adapter/templates/templates/astro-landing/.woodpecker.yml index fc7438c..1741b35 100644 --- a/internal/adapter/templates/templates/astro-landing/.woodpecker.yml +++ b/internal/adapter/templates/templates/astro-landing/.woodpecker.yml @@ -16,9 +16,6 @@ steps: docker: image: gcr.io/kaniko-project/executor:debug commands: - - | - mkdir -p /kaniko/.docker - echo "{\"auths\":{\"zot.orchard9.ai\":{\"username\":\"$ZOT_USER\",\"password\":\"$ZOT_PASSWORD\"}}}" > /kaniko/.docker/config.json - > /kaniko/executor --context . @@ -26,11 +23,7 @@ steps: --destination zot.orchard9.ai/{{PROJECT_NAME}}:latest --destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} --cache=true - environment: - ZOT_USER: - from_secret: zot_user - ZOT_PASSWORD: - from_secret: zot_password + --insecure when: - event: push branch: main diff --git a/internal/adapter/templates/templates/default/.woodpecker.yml b/internal/adapter/templates/templates/default/.woodpecker.yml index 70275fe..9660680 100644 --- a/internal/adapter/templates/templates/default/.woodpecker.yml +++ b/internal/adapter/templates/templates/default/.woodpecker.yml @@ -2,9 +2,6 @@ steps: docker: image: gcr.io/kaniko-project/executor:debug commands: - - | - mkdir -p /kaniko/.docker - echo "{\"auths\":{\"zot.orchard9.ai\":{\"username\":\"$ZOT_USER\",\"password\":\"$ZOT_PASSWORD\"}}}" > /kaniko/.docker/config.json - > /kaniko/executor --context . @@ -12,11 +9,7 @@ steps: --destination zot.orchard9.ai/{{PROJECT_NAME}}:latest --destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} --cache=true - environment: - ZOT_USER: - from_secret: zot_user - ZOT_PASSWORD: - from_secret: zot_password + --insecure when: - event: push branch: main diff --git a/internal/adapter/templates/templates/go-api/.woodpecker.yml b/internal/adapter/templates/templates/go-api/.woodpecker.yml index b38af65..47af64e 100644 --- a/internal/adapter/templates/templates/go-api/.woodpecker.yml +++ b/internal/adapter/templates/templates/go-api/.woodpecker.yml @@ -16,9 +16,6 @@ steps: docker: image: gcr.io/kaniko-project/executor:debug commands: - - | - mkdir -p /kaniko/.docker - echo "{\"auths\":{\"zot.orchard9.ai\":{\"username\":\"$ZOT_USER\",\"password\":\"$ZOT_PASSWORD\"}}}" > /kaniko/.docker/config.json - > /kaniko/executor --context . @@ -26,11 +23,7 @@ steps: --destination zot.orchard9.ai/{{PROJECT_NAME}}:latest --destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8} --cache=true - environment: - ZOT_USER: - from_secret: zot_user - ZOT_PASSWORD: - from_secret: zot_password + --insecure when: - event: push branch: main