2 Commits
0.0.2 ... 0.0.3

Author SHA1 Message Date
7ed262d17b git version in ui 2021-07-01 16:41:42 +02:00
157b9e9843 git tag version in output 2021-07-01 16:34:56 +02:00
3 changed files with 9 additions and 0 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

View File

@ -19,3 +19,8 @@
.spacer {
flex: 1 1 auto;
}
.gittagversion {
font-size: x-small;
margin-right: 5em;
}

View File

@ -20,6 +20,7 @@
</button>
<span>Nober Grundbesitz GbR Hausverwaltung</span>
<span class="spacer"></span>
<span class="gittagversion">GITTAGVERSION</span>
<a *ngIf="!authenticated" mat-button routerLink="/login">Login</a>
<a *ngIf="authenticated" mat-button routerLink="/logout">Logout</a>
</mat-toolbar>