From 894b1d1f5b0acd2581d383cd9c42fdbbf9ac8ba2 Mon Sep 17 00:00:00 2001 From: Craig Johnston Date: Sat, 5 Dec 2020 19:42:01 -0800 Subject: [PATCH] updated go to 1.15 added pacakges to build script --- .goreleaser.yml | 57 ++++++++++++++++++++++++++++++------------------- go.mod | 2 +- go.sum | 1 + 3 files changed, 37 insertions(+), 23 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 2d51c44..43d2619 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,26 +1,39 @@ -# Build customization -build: - # Path to main.go file. - # Default is `main.go` - main: ./cmd/jwtpxy.go - binary: jwtpxy +builds: + - id: jwtpxy + main: ./cmd/jwtpxy.go + binary: jwtpxy + goos: + - linux + - darwin + - windows + goarch: + - 386 + - amd64 + - arm + - arm64 + mod_timestamp: '{{ .CommitTimestamp }}' + env: + - CGO_ENABLED=0 + flags: + - -trimpath + - -tags=netgo + - -a + - -v + ldflags: -s -w -X main.Version={{.Version}} - env: - - CGO_ENABLED=0 - - # GOOS list to build in. - # For more info refer to https://golang.org/doc/install/source#environment - # Defaults are darwin and linux - goos: - - linux - - # GOARCH to build in. - # For more info refer to https://golang.org/doc/install/source#environment - # Defaults are 386 and amd64 - goarch: - - amd64 - - ldflags: -s -w -X main.Version={{.Version}} +nfpms: + - file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + homepage: https://github.com/txn2/kubefwd + description: Kubernetes bulk port forwarding utility. + maintainer: Craig Johnston https://twitter.com/cjimti + license: Apache 2.0 + vendor: https://github.com/txn2 + formats: + - apk + - deb + - rpm + recommends: + - kubectl release: # Repo in which the release will be created. diff --git a/go.mod b/go.mod index 160f9e4..c0a5505 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/txn2/jwtpxy -go 1.13 +go 1.15 require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible diff --git a/go.sum b/go.sum index 5fa30d0..d1cf213 100644 --- a/go.sum +++ b/go.sum @@ -94,6 +94,7 @@ golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191010194322-b09406accb47 h1:/XfQ9z7ib8eEJX2hdgFTZJ/ntt0swNk5oYBziWeTCvY= golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=