Skip to content

Commit

Permalink
updated go to 1.15 added pacakges to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
cjimti committed Dec 6, 2020
1 parent e84bd80 commit 894b1d1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
57 changes: 35 additions & 22 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 894b1d1

Please sign in to comment.