mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-12 16:02:44 +00:00
28 lines
592 B
Makefile
28 lines
592 B
Makefile
VERSION = $(shell git describe --tags)
|
|
|
|
default: build
|
|
|
|
build: bindata.go
|
|
go build -ldflags "-X main.version=$(VERSION)" .
|
|
|
|
container: bindata.go
|
|
docker build .
|
|
|
|
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) ."
|
|
|
|
bindata.go: build_vue
|
|
go-bindata -o bindata.go assets/... dist/...
|
|
|
|
publish:
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
bash golang.sh
|
|
|
|
prepare-gae-deploy:
|
|
rm -rf Dockerfile vendor
|
|
|
|
.PHONY: bindata.go
|