diff --git a/AssignmentChecker/.gitlab-ci/01_functions.yml b/AssignmentChecker/.gitlab-ci/01_functions.yml index 9a7581a4c503ed2ca2d3f9cd355da110dfc0497d..3186774de5b266207ecacb35ac44bc144dfdf32f 100644 --- a/AssignmentChecker/.gitlab-ci/01_functions.yml +++ b/AssignmentChecker/.gitlab-ci/01_functions.yml @@ -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" diff --git a/AssignmentChecker/src/app.ts b/AssignmentChecker/src/app.ts index 76dc2c82c986754ecc87a1bc6d6ec1e1642d7ca6..ce2def49eb38eb2c3986d8d373597ebbae29f8ee 100644 --- a/AssignmentChecker/src/app.ts +++ b/AssignmentChecker/src/app.ts @@ -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);