Store version information in build

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-06-10 16:00:36 -04:00
parent 87194733bd
commit 648fbe8e60
+5
View File
@@ -9,6 +9,11 @@ build:
- rm -r public/fakeAPI
- npm run build
# Store version
- BRANCH=$([ "$CI_COMMIT_TAG" = "$CI_COMMIT_REF_NAME" ] && echo "master" || echo "$CI_COMMIT_REF_NAME")
- echo "$CI_COMMIT_TAG $BRANCH ${CI_COMMIT_SHA::7}" > build/VERSION
- cat build/VERSION
# Upload
- tar -czvf pihole-web.tar.gz -C build .
- wget https://ftl.pi-hole.net:8080/FTL-client