git version in ui

This commit is contained in:
2021-07-01 16:41:42 +02:00
parent 157b9e9843
commit 7ed262d17b
3 changed files with 9 additions and 1 deletions

View File

@ -36,6 +36,9 @@ build:
expire_in: 1 day
script:
- cd hv2-ui
- if [ "$CI_COMMIT_TAG" != "" ]; then
sed -i -e 's/GITTAGVERSION/'"$CI_COMMIT_TAG"'/' ./src/app/navigation/navigation.component.html
fi
- npm install
- ./node_modules/.bin/ng build --prod
- tar -czf ../dist.tgz dist