Skip to content

Commit

Permalink
Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
buger committed May 13, 2016
1 parent f8349e4 commit 854ea15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ VERSION = DEV-$(shell date +%s)
LDFLAGS = -ldflags "-X main.VERSION=$(VERSION) -extldflags \"-static\""
MAC_LDFLAGS = -ldflags "-X main.VERSION=$(VERSION)"

release: release-x64
release: release-x64 release-mac

release-x64:
docker run -v `pwd`:$(SOURCE_PATH) -t --env GOOS=linux --env GOARCH=amd64 -i gor go build $(LDFLAGS) && tar -czf gor_$(VERSION)_x64.tar.gz gor && rm gor
Expand All @@ -16,7 +16,7 @@ release-x86:
docker run -v `pwd`:$(SOURCE_PATH) -t --env GOOS=linux --env GOARCH=386 -i gor go build $(LDFLAGS) && tar -czf gor_$(VERSION)_x86.tar.gz gor && rm gor

release-mac:
go build $(MAC_LDFLAGS) && tar -czf gor_$(VERSION)_x86.tar.gz gor
go build $(MAC_LDFLAGS) && tar -czf gor_$(VERSION)_x86.tar.gz gor && rm gor

build:
docker build -t gor .
Expand Down

0 comments on commit 854ea15

Please sign in to comment.