Skip to content

Commit 637ba65

Browse files
committed
Using scaleway's registry
1 parent d4b3a57 commit 637ba65

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.gitlab-ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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
76
variables:
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

1112
build:
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

0 commit comments

Comments
 (0)