Skip to content

Commit

Permalink
go get ghr
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Aug 8, 2017
1 parent cdab777 commit f3fd730
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ push:
@docker tag "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" "$(DOCKER_USER)/$(DOCKER_IMAGE_NAME):$(TAG)"
@docker push "$(DOCKER_USER)/$(DOCKER_IMAGE_NAME):$(TAG)"

pushgithub:
@echo ">> pushing binary to github"
pushgithub: ghr
@echo ">> pushing binary to github with ghr"
@ghr $(TAG) *.tar.gz

promu:
@GOOS=$(shell uname -s | tr A-Z a-z) \
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
$(GO) get -u github.com/prometheus/promu

ghr:
@GOOS=$(shell uname -s | tr A-Z a-z) \
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
$(GO) get -u github.com/tcnksm/ghr

.PHONY: all style format build test vet tarball docker promu

0 comments on commit f3fd730

Please sign in to comment.