File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ stages:
33 - test
44 - deploy
55
6- # See https://docs.gitlab.com/ce/ci/docker/using_docker_build.html for overlayfs tip
76variables :
7+ CI_REGISTRY : rg.fr-par.scw.cloud
8+ CI_REGISTRY_USER : nologin
9+ CI_REGISTRY_PASSWORD : ${SCW_SECRET_TOKEN}
810 TAG : ${CI_REGISTRY}/${CI_PROJECT_PATH}:${CI_PIPELINE_ID}
9- DOCKER_DRIVER : overlay2
1011
1112build :
12- image : docker:latest
13- services :
14- - docker:dind
13+ image :
14+ name : gcr.io/kaniko-project/executor:debug
15+ entrypoint : [""]
1516 stage : build
1617 script :
18+ - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
1719 - set
18- - docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
19- - docker build -t ${TAG} .
20- - docker push ${TAG}
20+ - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $TAG
You can’t perform that action at this time.
0 commit comments