17 lines
531 B
YAML
17 lines
531 B
YAML
stages:
|
|
- build
|
|
|
|
build-image-job:
|
|
stage: build
|
|
image:
|
|
name: artifact.onwalk.net/k8s/kaniko-executor:debug
|
|
entrypoint: [""]
|
|
script:
|
|
- mkdir -p /kaniko/.docker
|
|
- echo "{\"auths\":{\"artifact.onwalk.net/k8s\":{\"auth\":\"$(printf "%s:%s" "admin" "${PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
|
|
- >-
|
|
/kaniko/executor
|
|
--context "${CI_PROJECT_DIR}"
|
|
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
|
--destination "artifact.onwalk.net/devops/alpine-ci-runner:latest"
|