Skip to content
Snippets Groups Projects
Commit e335b2ef authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

CI is launch for all but the $CI_DEFAULT_BRANCH (ie. main)

parent 1fd0bc08
No related branches found
No related tags found
No related merge requests found
Pipeline #44396 passed
......@@ -92,7 +92,7 @@ Build Calqul Python:
- *set_env
- *build_and_push_image
rules:
- if: '$CI_COMMIT_BRANCH == "launch-script"'
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
changes: # build image only if sources have changed.
- Dockerfiles/python/Dockerfile # Image definition has changed
- Dockerfiles/python/scripts/* # Python scripts have changed
......@@ -115,7 +115,7 @@ Build Calqul Postgis:
- cd $IMAGE_DIR
- *build_and_push_image
rules:
- if: '$CI_COMMIT_BRANCH == "launch-script"'
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
changes: # build image only if sources have changed.
- Dockerfiles/db/**/* # db scripts have changed
- .gitlab-ci.yml
......@@ -136,10 +136,8 @@ Deploy Calqul:
- echo $CI_COMMIT_BRANCH && echo $CI_DEFAULT_BRANCH
script:
- *apply_confs
# rules:
# - if: '$CI_COMMIT_BRANCH == "launch-script"'
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
tags:
#- ns-arb-d01 @TODO : Change after when the right namespace is available
- ns-test-d01 # No possibility to put varaibles here :(
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment