From 695bc796963916d48166e532cd08b5c027d4fbcf Mon Sep 17 00:00:00 2001 From: koehn Date: Sat, 24 Nov 2018 17:57:01 +0000 Subject: [PATCH] extracted docker command a la `go` and `make` --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a899879..fa7989d 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ GOBUILD=$(GOCMD) build $(LDFLAGS) GOTEST=$(GOCMD) test $(LDFLAGS) GOGET=$(GOCMD) get BINARY_NAME=writefreely +DOCKERCMD=docker IMAGE_NAME=writeas/writefreely all : build @@ -55,7 +56,7 @@ release : clean ui $(MAKE) build-windows cp cmd/writefreely/$(BINARY_NAME).exe build cd build; zip -r ../$(BINARY_NAME)_$(GITREV)_windows_amd64.zip ./*; cd .. - docker build -t $(IMAGE_NAME):latest -t $(IMAGE_NAME):$(GITREV) . + $(DOCKERCMD) build -t $(IMAGE_NAME):latest -t $(IMAGE_NAME):$(GITREV) . ui : force_look cd less/; $(MAKE) $(MFLAGS)