summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-05-19 21:18:43 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-05-19 21:23:30 +0200
commit36ef789f056d9ba55810c0a21bc4560b13325e74 (patch)
tree1b029c8b9f524e2c5e2772f89313b148da5a07c3 /Makefile
parentfixed default config (diff)
upgraded to lates release
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9cf51a6..b0db260 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
GOX_OSARCH ?= "darwin/amd64 linux/amd64 linux/arm freebsd/386 freebsd/amd64 linux/386 windows/386"
GOX_OUTPUT_DIR ?= bin
-GH_ACCESS_TOKEN ?= Missing access token.
+GH_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,10 @@ all: clean
require-version:
@if [[ -z "$$VERSION" ]]; then echo "Missing \$$VERSION"; exit 1; fi
-release: require-version
+require-access-token:
+ @if [[ -z "$(GH_ACCESS_TOKEN)" ]]; then echo "Missing \$$GH_ACCESS_TOKEN"; exit 1; fi
+
+release: require-version require-access-token build
@RESP=$$(curl --silent --data '{ \
"tag_name": "v$(VERSION)", \
"name": "v$(VERSION)", \
@@ -36,3 +41,6 @@ release: require-version
clean:
@rm -rf $(GOX_OUTPUT_DIR)
+
+docker:
+ docker build -t xiam/vanity .