From 9fb167ce499a8dc0f687e33c0e68818e7a9c0681 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 13 Aug 2017 16:08:38 +0200 Subject: upgraded to 0.1.3 --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9cf51a6..dc1116a 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,9 @@ GOX_OUTPUT_DIR ?= bin GH_ACCESS_TOKEN ?= Missing access token. MESSAGE ?= Latest release. -all: clean +all: build + +build: clean @mkdir -p $(GOX_OUTPUT_DIR) && \ gox -osarch=$(GOX_OSARCH) -output "$(GOX_OUTPUT_DIR)/{{.Dir}}_{{.OS}}_{{.Arch}}" && \ gzip bin/vanity_darwin_* && \ @@ -14,7 +16,7 @@ all: clean require-version: @if [[ -z "$$VERSION" ]]; then echo "Missing \$$VERSION"; exit 1; fi -release: require-version +release: build require-version @RESP=$$(curl --silent --data '{ \ "tag_name": "v$(VERSION)", \ "name": "v$(VERSION)", \ @@ -36,3 +38,6 @@ release: require-version clean: @rm -rf $(GOX_OUTPUT_DIR) + +docker: + docker build -t xiam/vanity . -- cgit v1.2.3