configui/release.sh

19 lines
357 B
Bash

VERSION=$(git describe --tags --abbrev=0)
BUILD=$(git rev-parse --short HEAD)
PROJ=$(basename "$(PWD)")
HUB=hub.kumoly.io
HUB_PROJECT=tools
LDFLAGS='-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD} -w"'
PLATFORMS='darwin linux'
ARCHITECTURES=amd64
APPS=configui
echo $LDFLAGS
build(){
foreach GOOS $1
echo $GOOS
}
build $PLATFORMS