From 8a08b213a51f59a20cf755a596d236cb645370d5 Mon Sep 17 00:00:00 2001 From: Benedikt Elser <benedikt.elser@th-deg.de> Date: Thu, 17 Jun 2021 09:39:04 +0200 Subject: [PATCH] Update --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 06fc12f..7158a2a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,11 +13,11 @@ variables: CONTAINER_IMAGE: registry.mygit.th-deg.de/$CI_PROJECT_PATH before_script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.mygit.th-deg.de build: stage: build script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.mygit.th-deg.de - docker pull $CONTAINER_IMAGE:latest || true - docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:latest . - docker push $CONTAINER_IMAGE:latest -- GitLab