2015-07-29 10:07:42 +00:00
|
|
|
VERSION = $(shell git describe --tags)
|
2015-07-29 07:01:23 +00:00
|
|
|
|
|
|
|
default: build
|
|
|
|
|
2018-08-25 10:11:08 +00:00
|
|
|
build: bindata.go
|
|
|
|
go build -ldflags "-X main.version=$(VERSION)" .
|
2015-07-29 07:01:23 +00:00
|
|
|
|
2015-10-28 12:47:31 +00:00
|
|
|
container: bindata.go
|
2015-07-29 07:01:23 +00:00
|
|
|
docker build .
|
|
|
|
|
2018-08-25 10:11:08 +00:00
|
|
|
build_vue:
|
|
|
|
docker run --rm -i \
|
|
|
|
-v "$(CURDIR):/src" \
|
|
|
|
-w "/src" \
|
|
|
|
node:10-alpine \
|
|
|
|
sh -exc "npm ci && npm run build && chown -R $(shell id -u):$(shell id -g) ."
|
2015-10-28 12:47:31 +00:00
|
|
|
|
2018-08-25 10:11:08 +00:00
|
|
|
bindata.go: build_vue
|
2018-08-25 10:13:26 +00:00
|
|
|
go-bindata -o bindata.go assets/... dist/...
|
2017-12-08 11:58:02 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|
2017-12-29 20:52:04 +00:00
|
|
|
|
|
|
|
prepare-gae-deploy:
|
2017-12-30 00:02:02 +00:00
|
|
|
rm -rf Dockerfile vendor
|
2017-12-29 20:52:04 +00:00
|
|
|
|
|
|
|
.PHONY: bindata.go
|