All checks were successful
continuous-integration/drone/push Build is passing
12 lines
351 B
Bash
12 lines
351 B
Bash
#!/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 > ucs-exporter_checksum.txt
|
|
ls -lah |