From 2750b16f5647cfef98528cf8ea3bdbde58f376e3 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 25 Sep 2024 14:16:32 +0200 Subject: [PATCH] =?UTF-8?q?Update=20.gitlab.yml=20with=20latest=20CI=C2=A0?= =?UTF-8?q?env=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 66e0591..ef532d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,12 +14,10 @@ build_image: services: - docker:dind script: - - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY - - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" . - - docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" + - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY + - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" . + - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" only: - tags tags: - docker - -# simple edit to trigger this old pipeline again \ No newline at end of file -- GitLab