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:
|
docker:
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
commands:
|
commands:
|
||||||
- |
|
|
||||||
mkdir -p /kaniko/.docker
|
|
||||||
echo "{\"auths\":{\"zot.orchard9.ai\":{\"username\":\"$ZOT_USER\",\"password\":\"$ZOT_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
||||||
- >
|
- >
|
||||||
/kaniko/executor
|
/kaniko/executor
|
||||||
--context .
|
--context .
|
||||||
@ -26,11 +23,7 @@ steps:
|
|||||||
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest
|
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest
|
||||||
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
|
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
|
||||||
--cache=true
|
--cache=true
|
||||||
environment:
|
--insecure
|
||||||
ZOT_USER:
|
|
||||||
from_secret: zot_user
|
|
||||||
ZOT_PASSWORD:
|
|
||||||
from_secret: zot_password
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|||||||
@ -2,9 +2,6 @@ steps:
|
|||||||
docker:
|
docker:
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
commands:
|
commands:
|
||||||
- |
|
|
||||||
mkdir -p /kaniko/.docker
|
|
||||||
echo "{\"auths\":{\"zot.orchard9.ai\":{\"username\":\"$ZOT_USER\",\"password\":\"$ZOT_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
||||||
- >
|
- >
|
||||||
/kaniko/executor
|
/kaniko/executor
|
||||||
--context .
|
--context .
|
||||||
@ -12,11 +9,7 @@ steps:
|
|||||||
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest
|
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest
|
||||||
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
|
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
|
||||||
--cache=true
|
--cache=true
|
||||||
environment:
|
--insecure
|
||||||
ZOT_USER:
|
|
||||||
from_secret: zot_user
|
|
||||||
ZOT_PASSWORD:
|
|
||||||
from_secret: zot_password
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|||||||
@ -16,9 +16,6 @@ steps:
|
|||||||
docker:
|
docker:
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
commands:
|
commands:
|
||||||
- |
|
|
||||||
mkdir -p /kaniko/.docker
|
|
||||||
echo "{\"auths\":{\"zot.orchard9.ai\":{\"username\":\"$ZOT_USER\",\"password\":\"$ZOT_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
||||||
- >
|
- >
|
||||||
/kaniko/executor
|
/kaniko/executor
|
||||||
--context .
|
--context .
|
||||||
@ -26,11 +23,7 @@ steps:
|
|||||||
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest
|
--destination zot.orchard9.ai/{{PROJECT_NAME}}:latest
|
||||||
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
|
--destination zot.orchard9.ai/{{PROJECT_NAME}}:${CI_COMMIT_SHA:0:8}
|
||||||
--cache=true
|
--cache=true
|
||||||
environment:
|
--insecure
|
||||||
ZOT_USER:
|
|
||||||
from_secret: zot_user
|
|
||||||
ZOT_PASSWORD:
|
|
||||||
from_secret: zot_password
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user