This commit is contained in:
Nikola Kubiczek 2023-09-08 21:27:22 +02:00
parent 27e864f4b4
commit 6bf92b2241
Signed by: yaemiku
GPG Key ID: ADC039636B3E4AAB

View File

@ -12,16 +12,8 @@ build:
name: gcr.io/kaniko-project/executor:v1.14.0-debug
entrypoint: [""]
script:
- |
cat << EOF > /kaniko/.docker/config.json
{
"auths": {
"https://registry.yaemiku.dev": {
"auth": "${DOCKER_PASSWORD}"
}
}
}
EOF
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"registry.yaemiku.dev\":{\"auth\":\"$DOCKER_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"