Goreleaser (#616) (#619)

* Goreleaser (#616)

* add goreleaser

* incl readme and license

* rm unnesesary license refs

* enable to test

* few changes to travis.yml to test goreleaser

* switch back to master

* try separate conditions
This commit is contained in:
Rob j Loranger
2018-09-01 12:40:46 -07:00
committed by GitHub
parent 249a1a6e4e
commit fe63c38e15
2 changed files with 46 additions and 5 deletions
+31
View File
@@ -0,0 +1,31 @@
builds:
-
goos:
- linux
- darwin
- windows
goarch:
- amd64
main: ./cmd/proxy/main.go
binary: athens-proxy
env:
- CGO_ENABLED=0
archive:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
format: tar.gz
files:
- license*
- LICENSE*
- readme*
- README*
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
+15 -5
View File
@@ -13,6 +13,7 @@ env:
- CODE_COV=1
- ATHENS_DIR=${GOPATH}/src/github.com/gomods/athens
- REGISTRY=gomods/
- GORELEASER_ON=1
matrix:
# remove this after Go1.12 ships
- GO111MODULE=auto
@@ -38,8 +39,17 @@ before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
provider: script
script: make docker-push
on:
repo: gomods/athens
all_branches: true
- provider: script
script: make docker-push
on:
repo: gomods/athens
all_branches: true
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s -- --snapshot
on:
repo: gomods/athens
branch: master
# tags: true
condition: $GORELEASER_ON = 1
condition: $GO111MODULE = on