diff --git a/.goreleaser.yml b/.goreleaser.yml index e3d3351c..09b4d2af 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -45,4 +45,7 @@ snapshot: name_template: 'master' release: - disable: true + github: + owner: BondAnthony + name: kubectl-trace + prerelease: auto diff --git a/.travis.yml b/.travis.yml index 23cbdd43..14abe880 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,8 @@ 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 + #- GO111MODULE=on; go get github.com/goreleaser/goreleaser script: - make test - make _output/bin/kubectl-trace @@ -16,3 +17,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 diff --git a/Makefile b/Makefile index 0f0e154b..ede031eb 100644 --- a/Makefile +++ b/Makefile @@ -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: