Skip to content

Commit

Permalink
adding goreleaser to publish kafqa agent distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
devdinu committed Feb 24, 2020
1 parent 62f8b3c commit 7094661
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ local.env
coverage.txt
cmd/kafqa/kafqa
cmd/agent/agent
dist/
17 changes: 17 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/agent/main.go
binary: kafqa-agent
id: agent
archives:
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go: 1.12.5
stages:
- test
- build
- deploy

before_install:
- git clone https://github.com/edenhill/librdkafka.git
Expand Down Expand Up @@ -34,6 +35,10 @@ jobs:
name: "Run Golangci"
- stage: build
script: make clean build
- stage: deploy
if: tag is PRESENT
script:
- curl -sL https://git.io/goreleaser | bash -s -- --debug

after_success:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 7094661

Please sign in to comment.