mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CICD: GoReleaser version (#2737)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
committed by
GitHub
parent
8ed137aff5
commit
17da0bc69f
@ -7,7 +7,6 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
var sha = flag.String("sha", "", "SHA of current commit")
|
||||
@ -16,7 +15,7 @@ var goos = flag.String("os", "", "OS to build (linux, windows, or darwin) Defaul
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
flags := fmt.Sprintf(`-s -w -X "main.SHA=%s" -X main.BuildTime=%d`, getVersion(), time.Now().Unix())
|
||||
flags := fmt.Sprintf(`-s -w -X "main.version=%s"`, getVersion())
|
||||
pkg := "github.com/StackExchange/dnscontrol/v4"
|
||||
|
||||
build := func(out, goos string) {
|
||||
|
Reference in New Issue
Block a user