From 0888ec7266133114366dec7b008e2399bc3e963f Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 2 Aug 2023 16:25:48 -0700 Subject: [PATCH 1/2] ci: :green_heart: use Kaniko --- .gitlab-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e579caed00..00384f5124 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,18 +48,18 @@ testCommit: dockerPush: stage: build - image: docker:latest - services: - - name: docker:dind - alias: docker + image: + name: gcr.io/kaniko-project/executor:v1.9.0-debug + entrypoint: [""] before_script: - cp .config/ci.yml .config/default.yml - cp .config/docker_ci.env .config/docker.env - docker info script: - - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG . - - echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY - - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG + - /kaniko/executor + --context "${CI_PROJECT_DIR}" + --dockerfile "${CI_PROJECT_DIR}/Dockerfile" + --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}" only: - main - beta From c621ca6be363364c468a5e2310e5d02fe796a47c Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 2 Aug 2023 17:02:38 -0700 Subject: [PATCH 2/2] ci: :green_heart: `docker info` not needed for before_script --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00384f5124..4287666dea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,7 +54,6 @@ dockerPush: before_script: - cp .config/ci.yml .config/default.yml - cp .config/docker_ci.env .config/docker.env - - docker info script: - /kaniko/executor --context "${CI_PROJECT_DIR}"