1
0
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:
Jeffrey Cafferata
2024-01-02 21:14:35 +01:00
committed by GitHub
parent 8ed137aff5
commit 17da0bc69f
9 changed files with 19 additions and 94 deletions

View File

@ -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) {