From 50a6a1ee40495f45bab0233872d11169bb607a83 Mon Sep 17 00:00:00 2001 From: koehn Date: Sat, 24 Nov 2018 17:49:52 +0000 Subject: [PATCH] added docker support to `make release` --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 126bbb1..a899879 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ GOBUILD=$(GOCMD) build $(LDFLAGS) GOTEST=$(GOCMD) test $(LDFLAGS) GOGET=$(GOCMD) get BINARY_NAME=writefreely +IMAGE_NAME=writeas/writefreely all : build @@ -53,7 +54,8 @@ release : clean ui rm build/$(BINARY_NAME) $(MAKE) build-windows cp cmd/writefreely/$(BINARY_NAME).exe build - cd build; zip -r ../$(BINARY_NAME)_$(GITREV)_windows_amd64.zip ./* + cd build; zip -r ../$(BINARY_NAME)_$(GITREV)_windows_amd64.zip ./*; cd .. + docker build -t $(IMAGE_NAME):latest -t $(IMAGE_NAME):$(GITREV) . ui : force_look cd less/; $(MAKE) $(MFLAGS)