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

CI/CD => Fix project path

parent 1ac47157
No related branches found
No related tags found
No related merge requests found
Pipeline #26431 passed
......@@ -59,16 +59,17 @@ variables:
# Decrypt env vars for production
- apk add npm sed
- cd $PROJECT_FOLDER
- sed -i -r "s/\{\{VERSION\}\}/${VERSION}/g" src/app.ts
- |
if [ $CI_COMMIT_REF_PROTECTED == "true" ]; then
cd $PROJECT_FOLDER
echo "Decrypt production env vars"
sed -i -r "s/(DOTENV_KEY[ ]*:[ ]*[\'\"\`])[^'\"\`]*([\'\"\`])([ ]*\,)?//g" src/app.ts
sed -i -r "s/,[\ \n]*\}/\}/g" src/app.ts
npx dotenv-vault local decrypt "${DOTENV_PROD_KEY}" > .env
cd ..
fi
- cd ..
# Need to build for each platform separately because of multi-stage builds (docker buildx don't use cache same way as docker build)
- >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment