Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Script recalcul calque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ERASME
Script recalcul calque
Commits
e335b2ef
Commit
e335b2ef
authored
2 years ago
by
Pierre-Gilles Levallois
Browse files
Options
Downloads
Patches
Plain Diff
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
2 years ago
Stage: Build Calqul
Stage: Deploy Calqul
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-6
4 additions, 6 deletions
.gitlab-ci.yml
with
4 additions
and
6 deletions
.gitlab-ci.yml
+
4
−
6
View file @
e335b2ef
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment