Loading .gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -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}" Loading Loading
.gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -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}" Loading