Skip to content
Snippets Groups Projects
Commit fd2e171b authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

fix ci

parent 47b04b40
Branches
No related tags found
No related merge requests found
Pipeline #9108 passed
......@@ -34,6 +34,16 @@ build:
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sleep infinity
- AUTH=$(echo -n "${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}" | base64)
- |
cat << EOF > /kaniko/.docker/config.json
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "${AUTH}"
}
}
}
EOF
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment