Nathalie Furmento лет назад: 5
Родитель
Сommit
b66eb351c3
1 измененных файлов с 12 добавлено и 3 удалено
  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"'