Skip to content

Commit

Permalink
adding release task
Browse files Browse the repository at this point in the history
  • Loading branch information
progrium committed Jul 2, 2014
1 parent d86cd49 commit cd57861
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
NAME=ambassadord
HARDWARE=$(shell uname -m)
VERSION=0.0.1

build:
go build -o stage/ambassadord
docker build -t ambassadord .

release:
rm -rf release
mkdir release
GOOS=linux go build -o release/$(NAME)
cd release && tar -zcf $(NAME)_$(VERSION)_linux_$(HARDWARE).tgz $(NAME)
GOOS=darwin go build -o release/$(NAME)
cd release && tar -zcf $(NAME)_$(VERSION)_darwin_$(HARDWARE).tgz $(NAME)
rm release/$(NAME)
echo "$(VERSION)" > release/version
echo "progrium/$(NAME)" > release/repo
gh-release

.PHONY: build

0 comments on commit cd57861

Please sign in to comment.