From c0b7a3810472b7d6a384edaa974f5142054176da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me>
Date: Wed, 20 Sep 2023 17:32:39 +0200
Subject: [PATCH] CI/CD => Fix path of the app.ts file

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c2bc4d0..1f320c8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -70,7 +70,7 @@ variables:
 
 .build_cli:
     script:
-        - cd NodeApp
+        - cd "${PROJECT_FOLDER}"
 
         # Install dependencies
         - npm install
@@ -170,7 +170,7 @@ build:version:
 
         - |
             echo "Replace DOTENV_KEY if we are on a protected branch" # Hide the print of the DOTENV_PROD_KEY
-            sed -r "s/(DOTENV_KEY[ ]*:[ ]*[\'\"\`])[^'\"\`]*([\'\"\`])/\${DOTENV_PROD_KEY}\2/g" src/app.ts > src/app.ts;
+            sed -r "s/(DOTENV_KEY[ ]*:[ ]*[\'\"\`])[^'\"\`]*([\'\"\`])/\${DOTENV_PROD_KEY}\2/g" ${PROJECT_FOLDER}/src/app.ts > ${PROJECT_FOLDER}/src/app.ts;
 
         # Build
         - !reference [.build_cli, script]
-- 
GitLab