mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 08:54:00 -04:00
Update application builder
This commit is contained in:
22
init/buildinfo.sh
Normal file
22
init/buildinfo.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
# This file is read in by settings.sh.
|
||||
# These values are not generally user configurable and this file is overwritten on upgrades.
|
||||
# Override values in here by setting them in settings.sh; do not change this file.
|
||||
##########
|
||||
|
||||
VENDOR="Go Lift <code@golift.io>"
|
||||
|
||||
# Dynamic. Recommend not changing.
|
||||
VVERSION=$(git describe --abbrev=0 --tags $(git rev-list --tags --max-count=1) 2>/dev/null)
|
||||
VERSION="$(echo $VVERSION | tr -d v | grep -E '^\S+$' || echo development)"
|
||||
# This produces a 0 in some envirnoments (like Homebrew), but it's only used for packages.
|
||||
ITERATION=$(git rev-list --count --all || echo 0)
|
||||
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||
COMMIT="$(git rev-parse --short HEAD || echo 0)"
|
||||
|
||||
GIT_BRANCH="$(git rev-parse --abbrev-ref HEAD || echo unknown)"
|
||||
BRANCH="${TRAVIS_BRANCH:-${GIT_BRANCH}}"
|
||||
|
||||
# Defines docker manifest/build types.
|
||||
BUILDS="linux:armhf:arm linux:arm64:arm64 linux:amd64:amd64 linux:i386:386"
|
||||
|
||||
export VENDOR VVERSION VERSION ITERATION DATE BRANCH COMMIT BUILDS
|
||||
Reference in New Issue
Block a user