Skip to content
Snippets Groups Projects
Commit 2ceb9c19 authored by (INACTIVE) Marcel Bajdel (new marcel.bajdel)'s avatar (INACTIVE) Marcel Bajdel (new marcel.bajdel) :rocket:
Browse files

changes to the pipeline

parent 6b526800
No related branches found
No related tags found
3 merge requests!20Release,!13Docker image branch,!12Docker image branch
......@@ -31,7 +31,7 @@ initial_build:
# Read the value of DOCKER_LATEST_IMAGE_EXISTS from the artifact
- export DOCKER_LATEST_IMAGE_EXISTS=$(cat docker_latest_image.txt)
# if the image does not exist, build it
- if $DOCKER_LATEST_IMAGE_EXISTS=false; then /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH; else echo "Docker image already exists"; fi
- if [ "$DOCKER_LATEST_IMAGE_EXISTS" == "false" ]; then /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH; else echo "Docker image already exists"; fi
rules: # if the image is pushed into main branch, the build_main job will run
- if: $CI_COMMIT_BRANCH
changes:
......
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