Skip to content
Snippets Groups Projects
Verified Commit 3c800942 authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Fix build credentials

parent 0a3a1e14
No related branches found
Tags 0.1.0-beta.1
No related merge requests found
Pipeline #14670 failed
......@@ -11,14 +11,14 @@ build:
rules:
- if: $CI_COMMIT_TAG
script:
- echo "{\"auths\":{\"${DOCKERHUB_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${DOCKERHUB_REGISTRY_USER}" "${DOCKERHUB_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${DOCKERHUB_REPO}:${CI_COMMIT_TAG}"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
- |
cat << EOF > deploy.env
DOCKER_IMAGE=${DOCKERHUB_REPO}:${CI_COMMIT_TAG}
cat << EOF > deploy.env
DOCKER_IMAGE=${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}
EOF
after_script:
- cat deploy.env
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment