From 74a9e3c2fb01b778172a690b9efa3bbe29424ab2 Mon Sep 17 00:00:00 2001 From: Pascal Baumann <pascal.baumann@hslu.ch> Date: Wed, 8 Jan 2025 07:43:49 +0000 Subject: [PATCH] Add DOCKER_BUILD_OPTS to build stage --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c3dc4ec..115f419 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,5 +13,5 @@ image_build: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY script: | CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7) - docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 . - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 \ No newline at end of file + docker build $DOCKER_BUILD_OPTS --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 . + docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 -- GitLab