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 <noreply@anthropic.com>
This commit is contained in:
jordan 2026-01-28 18:47:39 -07:00
parent a14606e9c9
commit 29696ec135
3 changed files with 3 additions and 24 deletions

View File

@ -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

View File

@ -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

View File

@ -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