Skip to content
Snippets Groups Projects
Commit ebe9c628 authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

Use v1 auth to dockerhub

parent d76aa3fe
No related branches found
No related tags found
1 merge request!104Beta
Pipeline #8574 failed with stages
in 10 minutes and 20 seconds
......@@ -10,7 +10,7 @@ docker:
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"registry.hub.docker.com\":{\"username\":\"$CI_REGISTRY_USERNAME\",\"password\":\"$CI_BUILD_TOKEN\"}}}" > /kaniko/.docker/config.json
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$CI_BUILD_TOKEN\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
only:
- master
......
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