Skip to content
Snippets Groups Projects
Commit 619ad243 authored by yyvf's avatar yyvf
Browse files

ci: fix auth

parent c9c5e431
No related branches found
No related tags found
No related merge requests found
Pipeline #41604 failed
...@@ -8,8 +8,16 @@ build: ...@@ -8,8 +8,16 @@ build:
name: gcr.io/kaniko-project/executor:v1.23.2-debug name: gcr.io/kaniko-project/executor:v1.23.2-debug
entrypoint: [""] entrypoint: [""]
script: script:
- echo "{\"auths\":{\"harbor.c3sl.ufpr.br\":{\"username\":\"$HARBOR_USER\",\"password\":\"$HARBOR_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"harbor.c3sl.ufpr.br\":{\"auth\":\"$(echo -n ${HARBOR_USER}:${HARBOR_PASSWORD} | base64 -w 0)\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --single-snapshot --snapshot-mode=redo --use-new-run --context . --destination harbor.c3sl.ufpr.br/root/docs --cache=true --compressed-caching=true --dockerfile "${CI_PROJECT_DIR}/Dockerfile" - /kaniko/executor
--single-snapshot
--snapshot-mode=redo
--use-new-run
--context "${CI_PROJECT_DIR}"
--destination "harbor.c3sl.ufpr.br/root/${CI_PROJECT_NAME}:${CI_COMMIT_TAG}"
--cache=true
--compressed-caching=true
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
deploy: deploy:
stage: deploy stage: deploy
......
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