mirror of
https://github.com/writefreely/writefreely
synced 2024-11-24 09:33:11 +00:00
extracted docker command a la go
and make
This commit is contained in:
parent
50a6a1ee40
commit
695bc79696
1 changed files with 2 additions and 1 deletions
3
Makefile
3
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)
|
||||
|
|
Loading…
Reference in a new issue