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
No related branches found
No related tags found
No related merge requests found
Pipeline #28994 passed
......@@ -51,7 +51,7 @@
# Decrypt env vars for production
- apk add npm sed
- 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
echo "Decrypt production env vars"
......
......@@ -19,13 +19,12 @@ import Styles from './types/Style';
import HttpManager from './managers/HttpManager';
import Config from './config/Config';
import Icon from './shared/types/Icon';
import { version } from './config/Version';
(async () => {
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment