Skip to content
Snippets Groups Projects
Commit 81d3796c authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- fix docker auth

parent 0c0f63c2
Branches
No related tags found
No related merge requests found
Pipeline #6092 failed
...@@ -6,7 +6,7 @@ stages: # List of stages for jobs, and their order of execution ...@@ -6,7 +6,7 @@ stages: # List of stages for jobs, and their order of execution
variables: variables:
EXLIBRIS_SDK_DIR: "/exlibris" EXLIBRIS_SDK_DIR: "/exlibris"
ROSETTASDK: "${EXLIBRIS_SDK_DIR}/8.1/lib/" ROSETTASDK: "${EXLIBRIS_SDK_DIR}/8.1/lib/"
IMAGE_TARGET: "${HARBOR_HOST}/storageplugin4rosetta/bookworm_storageplugin4rosetta" IMAGE_TARGET: "${HARBOR_HOST}/${HARBOR_PROJECT}/bookworm_${HARBOR_PROJECT}"
FF_USE_FASTZIP: "true" FF_USE_FASTZIP: "true"
# These can be specified per job or per pipeline # These can be specified per job or per pipeline
ARTIFACT_COMPRESSION_LEVEL: "fast" ARTIFACT_COMPRESSION_LEVEL: "fast"
...@@ -35,7 +35,7 @@ build-env-job: # This job runs in the build stage, which runs first. ...@@ -35,7 +35,7 @@ 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 # docu: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html, this is basically copy-pasted from there
script: script:
- mkdir -p /kaniko/.docker - mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"${HARBOR_HOST}\":{\"auth\":\"$(echo -n ${HARBOR_USERNAME}:${HARBOR_PASSWORD} | base64)\"}},\"$(printf "%s" "$CI_DEPENDENCY_PROXY_SERVER" | cut -d':' -f1)\":{\"auth\":\"$(printf "%s:%s" "$CI_DEPENDENCY_PROXY_USER" "$CI_DEPENDENCY_PROXY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json; - echo "{\"auths\":{\"${HARBOR_HOST}\":{\"auth\":\"$(echo -n ${HARBOR_USERNAME}:${HARBOR_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
# In this task, Kaniko executor is called to build the Image based on the Dockerfile provided with "--dockerfile". # In this task, Kaniko executor is called to build the Image based on the Dockerfile provided with "--dockerfile".
- echo "CI_PROJECT_DIR=${CI_PROJECT_DIR}" - echo "CI_PROJECT_DIR=${CI_PROJECT_DIR}"
- >- - >-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment