Skip to content

Commit

Permalink
add to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-kent committed Mar 13, 2016
1 parent ff162ba commit 45abd40
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
VERSION=0.1.8
VERSION=0.1.9

all: deps fmt combined

combined:
go install .

release: release-deps
release: release-deps dockerhub
gox -output="build/{{.Dir}}_{{.OS}}_{{.Arch}}" .

fmt:
Expand Down Expand Up @@ -50,4 +50,13 @@ tag:
cd ../smtp; git tag -a -m 'v${VERSION}' ${VERSION} && git push origin ${VERSION}
cd ../storage; git tag -a -m 'v${VERSION}' ${VERSION} && git push origin ${VERSION}

.PNONY: all combined release fmt deps test-deps release-deps
rocker: rocker-deps
rocker build

rocker-deps:
go get github.com/grammarly/rocker

dockerhub: rocker
docker push mailhog/mailhog

.PNONY: all combined release fmt deps test-deps release-deps pull tag rocker rocker-deps

0 comments on commit 45abd40

Please sign in to comment.