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

Update .gitlab-ci.yml file

parent 472bce67
Branches
No related tags found
No related merge requests found
Pipeline #6944 failed
......@@ -49,11 +49,10 @@ build-env-job: # This job runs in the build stage, which runs first.
- 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)\"}}}" | 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".
- >-
/kaniko/executor
echo /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/gitlab-ci/Dockerfile"
--destination "${IMAGE_TARGET}:latest"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment