From fe8381e495e19f69eddd6cf406b81fa5b0dc579d Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Thu, 6 Apr 2023 13:46:57 +0000
Subject: [PATCH] chore: update .gitlab-ci.yml file Fix missing dependency
 (build-dev) of update all script

---
 .gitlab-ci.yml | 41 +++++++++++------------------------------
 1 file changed, 11 insertions(+), 30 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3c12ea757..b3992b0ec 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -184,25 +184,6 @@ deploy-test:
   needs:
     - build-dev
 
-deploy:
-  stage: push-deploy
-  before_script:
-    - apk add git
-    - apk add bash
-  script:
-    - yarn
-    - git config --global user.name build-pipeline
-    - git config --global user.email "$GIT_USER"
-    - git config --global user.password "$GIT_PWD"
-    - git config user.email "$GIT_USER"
-    - git remote set-url origin https://"$GIT_USER":"$GIT_PWD"@forge.grandlyon.com/web-et-numerique/factory/llle_project/ecolyo.git
-    - git config --global credential.helper store
-    - yarn deploy
-  only:
-    - master
-  needs:
-    - build-dev
-
 update-dev:
   stage: update-instances
   tags:
@@ -218,32 +199,32 @@ update-dev:
   needs:
     - deploy-dev
 
-update-demo:
+update-all:
   stage: update-instances
   tags:
     - deploy-alpha
   script:
     - cd /root/ecolyo-infra-scripts/cicid_scripts
-    - './update_ecolyodemo_test.sh'
+    - './update_all_ecolyo_dev.sh'
   only:
-    - dev
-  environment:
-    name: ecolyodemo
-    url: https://ecolyo.ecolyodemo.cozy.self-data.alpha.grandlyon.com/
+    - master
   needs:
-    - deploy-test
+    - deploy-dev
 
-update-all:
+update-demo:
   stage: update-instances
   tags:
     - deploy-alpha
   script:
     - cd /root/ecolyo-infra-scripts/cicid_scripts
-    - './update_all_ecolyo_dev.sh'
+    - './update_ecolyodemo_test.sh'
   only:
-    - master
+    - dev
+  environment:
+    name: ecolyodemo
+    url: https://ecolyo.ecolyodemo.cozy.self-data.alpha.grandlyon.com/
   needs:
-    - deploy
+    - deploy-test
 
 publish:
   stage: publish
-- 
GitLab