Skip to content
Snippets Groups Projects
Commit a439cd83 authored by Dimitrios Giannopoulos's avatar Dimitrios Giannopoulos
Browse files

minor syntax fix

parent fd8d6a79
No related branches found
No related tags found
2 merge requests!36Merging 2024Q2_RC into main, creating 2024Q2 Release,!7Resolve "Create a pipeline to build and publish the docker image in gitlab registry"
Pipeline #3631 failed
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment