fix(ci): configure kaniko auth for local registry
This commit is contained in:
parent
6f41a92dda
commit
33375eeeac
1 changed files with 7 additions and 0 deletions
|
|
@ -26,7 +26,14 @@ matrix:
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: gcr.io/kaniko-project/executor:v1.23.2-debug
|
image: gcr.io/kaniko-project/executor:v1.23.2-debug
|
||||||
|
environment:
|
||||||
|
REGISTRY_USERNAME:
|
||||||
|
from_secret: REGISTRY_USERNAME
|
||||||
|
REGISTRY_PASSWORD:
|
||||||
|
from_secret: REGISTRY_PASSWORD
|
||||||
commands:
|
commands:
|
||||||
|
- mkdir -p /kaniko/.docker
|
||||||
|
- echo "{\"auths\":{\"docker-registry.registry.svc.cluster.local:5000\":{\"username\":\"${REGISTRY_USERNAME}\",\"password\":\"${REGISTRY_PASSWORD}\"}}}" > /kaniko/.docker/config.json
|
||||||
- >-
|
- >-
|
||||||
/kaniko/executor
|
/kaniko/executor
|
||||||
--context .
|
--context .
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue