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:
parent
a14606e9c9
commit
29696ec135
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user