From a439cd83bc48d9b84ec125f187b3637745eca15c Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos <dimit.giannopoulos@upnet.gr> Date: Fri, 15 Dec 2023 10:07:03 +0000 Subject: [PATCH] minor syntax fix --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f7aa9b..0cd7480 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,14 +8,14 @@ build_image: name: gcr.io/kaniko-project/executor:v1.14.0-debug entrypoint: [""] before_script: - - > + - | if [ "$CI_COMMIT_REF_NAME" = "12-create-a-pipeline-to-build-and-publish-the-docker-image-in-gitlab-registry" ]; then export IMAGE_TAG=$CI_COMMIT_TAG export ADDITIONAL_TAG="latest" elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then export IMAGE_TAG="develop" fi - - echo "Building Docker image with tag: $IMAGE_TAG" + - echo "Building Docker image with tag $IMAGE_TAG" script: - /kaniko/executor --context "${CI_PROJECT_DIR}" -- GitLab