Build +20 coolness

This commit is contained in:
daru
2022-07-18 20:46:57 +02:00
parent ec6ed3cc63
commit d54ed135e3
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
#!/bin/bash
date=$(date '+%Y-%m-%dT%H:%M:%S')
go build -ldflags "-X main.buildTime=$date"
commit=$(git log -1 --pretty=format:'%h %B')
go build -ldflags "-X 'main.buildTime=$date' -X 'main.buildCommit=$commit'"