Files
go-ntp-check/.drone.sh
Nathan Coad 92e1fdf7c9
All checks were successful
continuous-integration/drone/push Build is passing
update
2025-03-10 14:11:43 +11:00

9 lines
264 B
Bash

#!/bin/sh
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 ntpcheck
echo "build complete"
sha256sum ntpcheck > ntpcheck_checksum.txt
ls -lah