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

CI/CD => Restore version replacement from pipeline

parent f61a1766
Branches
Tags
No related merge requests found
Pipeline #28994 passed
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
# Decrypt env vars for production # Decrypt env vars for production
- apk add npm sed - apk add npm sed
- cd $PROJECT_FOLDER - cd $PROJECT_FOLDER
# - sed -i -r "s/\{\{VERSION\}\}/${VERSION}/g" src/app.ts # Not needed anymore - sed -i -r "s/\{\{VERSION\}\}/${VERSION}/g" src/app.ts # Needed for have the -dev ou -test suffix in the version
- | - |
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" echo "Decrypt production env vars"
......
...@@ -19,13 +19,12 @@ import Styles from './types/Style'; ...@@ -19,13 +19,12 @@ import Styles from './types/Style';
import HttpManager from './managers/HttpManager'; import HttpManager from './managers/HttpManager';
import Config from './config/Config'; import Config from './config/Config';
import Icon from './shared/types/Icon'; import Icon from './shared/types/Icon';
import { version } from './config/Version';
(async () => { (async () => {
HttpManager.registerAxiosInterceptor(); HttpManager.registerAxiosInterceptor();
console.log(Styles.APP_NAME(`${ Config.appName } (version ${ version })`)); console.log(Styles.APP_NAME(`${ Config.appName } (version {{VERSION}})`));
const assignmentValidator = new AssignmentValidator(Config.folders.project); const assignmentValidator = new AssignmentValidator(Config.folders.project);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment