From 4c26845315761d3d8fce48d77f224d49a592eb50 Mon Sep 17 00:00:00 2001 From: AJ Bond Date: Sat, 7 Sep 2019 17:05:25 -0400 Subject: [PATCH] Gorelease test --- .goreleaser.yml | 5 ++++- .travis.yml | 11 ++++++++++- Makefile | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) 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: