Skip to content
Snippets Groups Projects
Commit 472bce67 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

Update .gitlab-ci.yml file

parent ff6a6883
No related branches found
No related tags found
No related merge requests found
Pipeline #6943 failed
......@@ -47,7 +47,8 @@ build-env-job: # This job runs in the build stage, which runs first.
# docu: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html, this is basically copy-pasted from there
script:
- mkdir -p /kaniko/.docker;
- echo -n "{\"auths\":{\"${HARBOR_HOST}\":{\"auth\":\"$(echo -n ${HARBOR_USERNAME}:${HARBOR_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
# - echo -n "{\"auths\":{\"${HARBOR_HOST}\":{\"auth\":\"$(echo -n ${HARBOR_USERNAME}:${HARBOR_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
- echo -n "{\"auths\":{\"${HARBOR_HOST}\":{\"auth\":\"$(echo -n ${HARBOR_USERNAME}:${HARBOR_PASSWORD} | base64)\"}}}" | tee /kaniko/.docker/config.json
- cat /kaniko/.docker/config.json
- echo "CI_PROJECT_DIR=${CI_PROJECT_DIR}";
# In this task, Kaniko executor is called to build the Image based on the Dockerfile provided with "--dockerfile".
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment