Update .gitlab-ci.yml

ee85b5c · Gabriel Morell · 2022-06-22 20:27

1 files +10 -27

Files changed

modified .gitlab-ci.yml
+10 −27
@@ -1,32 +1,15 @@
1 −image: docker:20.10.16
1 +image:
2 + name: gcr.io/kaniko-project/executor:debug
3 + entrypoint: [""]
2 4
3 −variables:
4 − # When using dind service, you must instruct docker to talk with the
5 − # daemon started inside of the service. The daemon is available with
6 − # a network connection instead of the default /var/run/docker.sock socket.
7 − #
8 − # The 'docker' hostname is the alias of the service container as described at
9 − # https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#accessing-the-services
10 − #
11 − # If you're using GitLab Runner 12.7 or earlier with the Kubernetes executor and Kubernetes 1.6 or earlier,
12 − # the variable must be set to tcp://localhost:2375 because of how the
13 − # Kubernetes executor connects services to the job container
14 − # DOCKER_HOST: tcp://localhost:2375
15 − #
16 − DOCKER_HOST: tcp://localhost:2375
17 − #
18 − # This instructs Docker not to start over TLS.
19 − DOCKER_TLS_CERTDIR: ""
20 −
21 −services:
22 − - docker:20.10.16-dind
23 −
24 −before_script:
25 − - docker info
26 −
27 −build:
5 +build-master:
6 + retry: 2
28 7 stage: build
29 8 tags:
30 9 - boston
31 10 script:
32 − - docker build -t "$CI_REGISTRY_IMAGE${tag}" .
11 + - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
12 + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE --registry-mirror e0.registry.gng.io
13 +
14 + only:
15 + - master

Parents: e7342a8