Skip to content

Commit

Permalink
Add release target
Browse files Browse the repository at this point in the history
  • Loading branch information
aerostitch committed Oct 29, 2018
1 parent 9ad2c87 commit 7c31bfb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- make go-dep
builds:
- env:
- CGO_ENABLED=0
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ go-build: go-dep go-lint go-test
go-compile:
@docker run --rm -v "$${PWD}":/go/src/github.com/VEVO/$(APP_NAME) -w /go/src/github.com/VEVO/$(APP_NAME) -e GOARCH=amd64 -e GOOS=linux -e CGO_ENABLED=0 -e BUILD_VERSION=$(BUILD_VERSION) golang:alpine make go-build

build: docker-lint docker-build docker-tag docker-push
build: docker-lint docker-build

release: build docker-tag docker-push
git tag -s $(BUILD_VERSION)
# We skip publish for now for sanity purposes
goreleaser release --skip-publish

# vim: ft=make

0 comments on commit 7c31bfb

Please sign in to comment.