4 lines
267 B
Bash
4 lines
267 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags release -ldflags "-X 'main.buildDateTime=$(date '+%Y-%m-%d %H:%M:%S')' -X 'main.gitCommitCode=$(git rev-list --full-history --all --abbrev-commit --max-count 1)' -s -w" -o Server main.go |