Skip to content

Commit

Permalink
fix(goreleaser): update go release syntax and address duplicate ids
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Bond committed Sep 3, 2019
1 parent 869b210 commit ee02a6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
project_name: kubectl-trace
builds:
- goos:
- id: "kubectl-trace"
goos:
- linux
- darwin
- windows
Expand All @@ -16,7 +17,8 @@ builds:
-X github.com/iovisor/kubectl-trace/pkg/version.gitCommit={{ .Commit }}
-X github.com/iovisor/kubectl-trace/pkg/version.imageName={{ .Env.IMAGE_NAME }}
binary: kubectl-trace
- goos:
- id: "trace-runner"
goos:
- linux
- darwin
- windows
Expand All @@ -33,10 +35,11 @@ builds:
-X github.com/iovisor/kubectl-trace/pkg/version.imageName={{ .Env.IMAGE_NAME }}
binary: trace-runner

archive:
format_overrides:
- goos: windows
format: zip
archives:
- id: windows
format_overrides:
- goos: windows
format: zip

snapshot:
name_template: 'master'
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go:
services:
- docker
before_install:
- GO111MODULE=on; go get github.com/goreleaser/goreleaser
- GO111MODULE=on; go get github.com/goreleaser/goreleaser
script:
- make test
- make _output/bin/kubectl-trace
Expand Down

0 comments on commit ee02a6c

Please sign in to comment.