mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* 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:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user