Skip to content

Commit

Permalink
Gorelease test
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Bond committed Sep 7, 2019
1 parent ee02a6c commit 4c26845
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ snapshot:
name_template: 'master'

release:
disable: true
github:
owner: BondAnthony
name: kubectl-trace
prerelease: auto
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
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 4c26845

Please sign in to comment.