Add make release-linux command
This commit is contained in:
parent
6da342b0d1
commit
21e6c64708
11
Makefile
11
Makefile
|
@ -76,6 +76,17 @@ release : clean ui assets
|
||||||
$(MAKE) build-docker
|
$(MAKE) build-docker
|
||||||
$(MAKE) release-docker
|
$(MAKE) release-docker
|
||||||
|
|
||||||
|
# This assumes you're on linux/amd64
|
||||||
|
release-linux : clean ui
|
||||||
|
mkdir build
|
||||||
|
cp -r templates build
|
||||||
|
cp -r pages build
|
||||||
|
cp -r static build
|
||||||
|
mkdir build/keys
|
||||||
|
$(MAKE) build-no-sqlite
|
||||||
|
mv cmd/writefreely/$(BINARY_NAME) build/$(BINARY_NAME)
|
||||||
|
cd build; tar -cvzf ../$(BINARY_NAME)_$(GITREV)_linux_amd64.tar.gz *
|
||||||
|
|
||||||
release-docker :
|
release-docker :
|
||||||
$(DOCKERCMD) push $(IMAGE_NAME)
|
$(DOCKERCMD) push $(IMAGE_NAME)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue