From 49fd845bee3571860af54718717978f54a5f9fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Fri, 8 Dec 2023 16:30:09 +0100 Subject: [PATCH] CI/CD => Fix test for commit ref protected --- NodeApp/.gitlab-ci/01_functions.yml | 2 +- NodeApp/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NodeApp/.gitlab-ci/01_functions.yml b/NodeApp/.gitlab-ci/01_functions.yml index b2c4f61..eb19c13 100644 --- a/NodeApp/.gitlab-ci/01_functions.yml +++ b/NodeApp/.gitlab-ci/01_functions.yml @@ -78,7 +78,7 @@ # Decrypt env vars for production - | - if [ $CI_COMMIT_REF_PROTECTED == "true" || $IS_TEST == true ]; then + if [[ $CI_COMMIT_REF_PROTECTED == "true" || $IS_TEST == true ]]; then echo "Decrypt production env vars" sed -i -r "s/(DOTENV_KEY[ ]*:[ ]*[\'\"\`])[^'\"\`]*([\'\"\`])([ ]*\,)?//g" src/app.ts sed -i -r "s/,[\ \n]*\}/\}/g" src/app.ts diff --git a/NodeApp/package.json b/NodeApp/package.json index 7c04d07..d98d45a 100644 --- a/NodeApp/package.json +++ b/NodeApp/package.json @@ -1,7 +1,7 @@ { "name" : "dojo_cli", "description" : "CLI of the Dojo project", - "version" : "3.1.0", + "version" : "3.1.1", "license" : "AGPLv3", "author" : "Michaƫl Minelli <dojo@minelli.me>", "main" : "dist/app.js", -- GitLab