1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-14 00:42:44 +00:00
cloudkeys-go/Makefile
Knut Ahlers ed73116f3a
Add dist folder to bindata
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-08-25 12:13:26 +02:00

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