Nathalie Furmento 5 years ago
parent
commit
b66eb351c3
1 changed files with 12 additions and 3 deletions
  1. 12 3
      .gitlab-ci.yml

+ 12 - 3
.gitlab-ci.yml

@@ -15,12 +15,21 @@
 #
 ---
 stages:
-  - check
+  - build
+  - deploy
 
-check:
-  stage: check
+build:
+  stage: build
   script:
     - ./contrib/gitlab/build.sh
+  rules:
+    - if: '$CI_PIPELINE_SOURCE == "push"'
+      when: never  # Prevent pipeline run for push event
+    - when: always # Run pipeline for all other cases
+
+deploy:
+  stage: deploy
+  script:
     - ./contrib/gitlab/deploy.sh
   rules:
     - if: '$CI_PIPELINE_SOURCE == "push"'