mirror of https://github.com/on4kjm/FLEcli.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
313 B
12 lines
313 B
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
go test ./...
|
|
|
|
commitRef=$(git rev-parse HEAD)
|
|
tag=$(git describe --tags)
|
|
version="${tag}_(PrivateBuild)"
|
|
buildDate=$(date -u +"%FT%TZ")
|
|
go build -ldflags="-s -w -X=FLEcli/cmd.version=${version} -X=FLEcli/cmd.commit=${commitRef} -X=FLEcli/cmd.date=${buildDate} -X=FLEcli/cmd.builtBy=${USER}"
|