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 7, 2019
1 parent 869b210 commit e0a6471
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
18 changes: 11 additions & 7 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,13 +35,15 @@ 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'

release:
disable: true
github:
prerelease: auto
10 changes: 9 additions & 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
- curl -LO https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_amd64.deb && sudo dpkg -i goreleaser_amd64.deb
script:
- make test
- make _output/bin/kubectl-trace
Expand All @@ -16,3 +16,11 @@ script:
- make cross
after_success:
- ./hack/ci-release-image.sh

deploy:
- provider: script
skip_cleanup: true
script: goreleaser
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ${trace_runner}:

.PHONY: cross
cross:
IMAGE_NAME=$(IMAGE_NAME) go run github.com/goreleaser/goreleaser --snapshot --rm-dist
IMAGE_NAME=$(IMAGE_NAME) goreleaser --snapshot --rm-dist

.PHONY: clean
clean:
Expand Down

0 comments on commit e0a6471

Please sign in to comment.