summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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 .