-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hagai Barel
committed
Nov 13, 2018
1 parent
3ccff23
commit f3a8edc
Showing
5 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ | |
# Folders to ignore | ||
bin/ | ||
vendor/ | ||
.vscode/ | ||
.vscode/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# .goreleaser.yml | ||
builds: | ||
- main: emq_exporter.go | ||
binary: emq_exporter | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
env: | ||
- CGO_ENABLED=0 | ||
flags: | ||
- -tags=netgo | ||
ldflags: | ||
- -s -w | ||
|
||
archive: | ||
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}" | ||
format: tar.gz | ||
wrap_in_directory: true | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
replacements: | ||
darwin: macos | ||
|
||
dockers: | ||
- binary: emq_exporter | ||
goos: linux | ||
goarch: amd64 | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- "nuvo/{{ .ProjectName }}:latest" | ||
- "nuvo/{{ .ProjectName }}:{{ .Tag }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
language: go | ||
|
||
go: | ||
- 1.11.2 | ||
- 1.11.2 | ||
|
||
services: | ||
- docker | ||
|
||
after_success: | ||
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi | ||
- test -n "$TRAVIS_TAG" && docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | ||
|
||
# calls goreleaser | ||
deploy: | ||
- provider: script | ||
skip_cleanup: true | ||
script: curl -sL https://git.io/goreleaser | bash | ||
on: | ||
tags: true | ||
condition: $TRAVIS_OS_NAME = linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters