added docker support to `make release`

This commit is contained in:
koehn 2018-11-24 17:49:52 +00:00
parent bdcacbc632
commit 50a6a1ee40
1 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ GOBUILD=$(GOCMD) build $(LDFLAGS)
GOTEST=$(GOCMD) test $(LDFLAGS) GOTEST=$(GOCMD) test $(LDFLAGS)
GOGET=$(GOCMD) get GOGET=$(GOCMD) get
BINARY_NAME=writefreely BINARY_NAME=writefreely
IMAGE_NAME=writeas/writefreely
all : build all : build
@ -53,7 +54,8 @@ release : clean ui
rm build/$(BINARY_NAME) rm build/$(BINARY_NAME)
$(MAKE) build-windows $(MAKE) build-windows
cp cmd/writefreely/$(BINARY_NAME).exe build 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 ui : force_look
cd less/; $(MAKE) $(MFLAGS) cd less/; $(MAKE) $(MFLAGS)