Skip to content

Commit d40fca4

Browse files
committed
Log the Git commit & time when building.
1 parent d7b456e commit d40fca4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
commit=$(git show --no-patch --format='%H')
44
buildTime=$(date -u)
55

6+
printf 'Building migration-verifier …\n\tcommit: %s\n\tbuildTime: %s\n' "$commit" "$buildTime"
7+
68
go build -ldflags="-X 'main.Revision=$commit' -X 'main.BuildTime=$buildTime'" main/migration_verifier.go

0 commit comments

Comments
 (0)