All checks were successful
continuous-integration/drone/push Build is passing
14 lines
334 B
Bash
14 lines
334 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
|
|
make drone-cache
|
|
echo "build commences"
|
|
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
|
|
echo "build complete"
|
|
sha256sum smt > smt_checksum.txt
|
|
ls -lah
|
|
ls -lah www |