Skip to content
Snippets Groups Projects
Commit c5abb702 authored by michael.minelli's avatar michael.minelli
Browse files

CI/CD => dotenv for test

parent ff6946df
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
# Decrypt env vars for production # Decrypt env vars for production
- | - |
if [ $CI_COMMIT_REF_PROTECTED == "true" ]; then if [ $CI_COMMIT_REF_PROTECTED == "true" || $IS_TEST == true ]; then
echo "Decrypt production env vars" echo "Decrypt production env vars"
sed -i -r "s/(DOTENV_KEY[ ]*:[ ]*[\'\"\`])[^'\"\`]*([\'\"\`])([ ]*\,)?//g" src/app.ts sed -i -r "s/(DOTENV_KEY[ ]*:[ ]*[\'\"\`])[^'\"\`]*([\'\"\`])([ ]*\,)?//g" src/app.ts
sed -i -r "s/,[\ \n]*\}/\}/g" src/app.ts sed -i -r "s/,[\ \n]*\}/\}/g" src/app.ts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment