adding drone
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2024-01-03 10:39:03 +11:00
parent 7629ed05bd
commit 5b4d36f8ba
5 changed files with 51 additions and 0 deletions

14
.drone.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
#set -e
#set -x
# 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 api-tester .
echo "build complete"
sha256sum api-tester > api-tester_checksum.txt
ls -lah