From c6261e026558a56dc4b9acc2f775976d7acc1b06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com>
Date: Wed, 14 Aug 2024 14:49:46 +0200
Subject: [PATCH] ci: use factory group build token

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df52976c0..e3bc1080a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -156,11 +156,11 @@ deploy-dev:
     - 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 user.name build-token
+    - git config --global user.email build-token
+    - git config --global user.password "$BUILD_TOKEN"
+    - git config user.email build-token
+    - git remote set-url origin https://build-token:"$BUILD_TOKEN"@forge.grandlyon.com/web-et-numerique/factory/llle_project/ecolyo.git
     - git config --global credential.helper store
     - yarn deploy-dev
   only:
@@ -178,11 +178,11 @@ deploy-test:
   script:
     - yarn
     - ls build
-    - 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 user.name build-token
+    - git config --global user.email build-token
+    - git config --global user.password "$BUILD_TOKEN"
+    - git config user.email build-token
+    - git remote set-url origin https://build-token:"$BUILD_TOKEN"@forge.grandlyon.com/web-et-numerique/factory/llle_project/ecolyo.git
     - git config --global credential.helper store
     - yarn deploy-test
   only:
-- 
GitLab