From 796e7f8bcdd8088e5198acecc514d70cdaa5e43b Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Fri, 13 Jan 2023 11:29:17 +0100
Subject: [PATCH] revert same stage

---
 .gitlab-ci.yml | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 741f1d1b3..b1a073b61 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,7 +12,7 @@ stages:
   - test
   - build
   - deploy-build
-  - update-alpha-instances
+  - update-instances
   - publish
 
 variables:
@@ -113,7 +113,7 @@ test:
     - merge_requests
 
 build-dev:
-  stage: update-alpha-instances
+  stage: build
   before_script:
     - apk add git
     - apk add bash
@@ -125,7 +125,6 @@ build-dev:
   artifacts:
     paths:
       - build/
-  when: manual
 
 build-prod:
   stage: build
@@ -143,7 +142,7 @@ build-prod:
       - build/
 
 deploy-dev:
-  stage: update-alpha-instances
+  stage: deploy-build
   before_script:
     - apk add git
     - apk add bash
@@ -158,11 +157,12 @@ deploy-dev:
     - yarn deploy-dev
   only:
     - dev
+  when: manual
   needs:
     - build-dev
 
 deploy-test:
-  stage: update-alpha-instances
+  stage: deploy-build
   before_script:
     - apk add git
     - apk add bash
@@ -180,10 +180,9 @@ deploy-test:
     - merge_requests
   needs:
     - build-dev
-  when: manual
 
 deploy:
-  stage: update-alpha-instances
+  stage: deploy-build
   before_script:
     - apk add git
     - apk add bash
@@ -202,7 +201,7 @@ deploy:
     - build-dev
 
 update-dev:
-  stage: update-alpha-instances
+  stage: update-instances
   tags:
     - deploy-alpha
   script:
@@ -217,7 +216,7 @@ update-dev:
     - deploy-dev
 
 update-demo:
-  stage: update-alpha-instances
+  stage: update-instances
   tags:
     - deploy-alpha
   script:
@@ -232,7 +231,7 @@ update-demo:
     - deploy-test
 
 update-all:
-  stage: update-alpha-instances
+  stage: update-instances
   tags:
     - deploy-alpha
   script:
-- 
GitLab