This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# disable CGO for cross-compiling
|
||||
export CGO_ENABLED=0
|
||||
|
||||
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
||||
echo $now
|
||||
echo "build commences"
|
||||
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o ucs-exporter cmd/server/main.go
|
||||
echo "build complete"
|
||||
sha256sum ucs-exporter > smt_checksum.txt
|
||||
sha256sum ucs-exporter > ucs-exporter_checksum.txt
|
||||
ls -lah
|
Reference in New Issue
Block a user