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

CI/CD => Restore version replacement from pipeline

parent 8dbbdfc8
No related branches found
No related tags found
No related merge requests found
Pipeline #28992 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"
......
...@@ -28,13 +28,12 @@ import ExerciseResultsSanitizerAndValidator from './sharedByClients/helpers/Dojo ...@@ -28,13 +28,12 @@ import ExerciseResultsSanitizerAndValidator from './sharedByClients/helpers/Dojo
import ExerciseAssignment from './sharedByClients/models/ExerciseAssignment'; import ExerciseAssignment from './sharedByClients/models/ExerciseAssignment';
import ClientsSharedExerciseHelper from './sharedByClients/helpers/Dojo/ClientsSharedExerciseHelper'; import ClientsSharedExerciseHelper from './sharedByClients/helpers/Dojo/ClientsSharedExerciseHelper';
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}})`));
let exerciseAssignment: ExerciseAssignment | undefined; let exerciseAssignment: ExerciseAssignment | undefined;
let exerciseDockerCompose: ExerciseDockerCompose; let exerciseDockerCompose: ExerciseDockerCompose;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment