diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c2bc4d0d0afb9f765beed9d9c6f9a6d12a37f51f..1f320c884283a714d8f1c7cebb71fd0c5eb78562 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]