1
0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-09-19 23:52:57 +00:00
cloudkeys-go/Makefile

29 lines
592 B
Makefile
Raw Normal View History

2015-07-29 10:07:42 +00:00
VERSION = $(shell git describe --tags)
2015-07-29 07:01:23 +00:00
default: build
build: bindata.go
go build -ldflags "-X main.version=$(VERSION)" .
2015-07-29 07:01:23 +00:00
container: bindata.go
2015-07-29 07:01:23 +00:00
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:
2017-12-30 00:02:02 +00:00
rm -rf Dockerfile vendor
.PHONY: bindata.go