1
0
Fork 0
mirror of https://github.com/Luzifer/wiki.git synced 2024-12-20 10:31:18 +00:00

Add build files

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-08-07 07:40:07 +02:00
parent 408dbd2d62
commit e2f3ac3984
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 22 additions and 0 deletions

12
.repo-runner.yaml Normal file
View file

@ -0,0 +1,12 @@
---
image: "reporunner/golang-alpine"
checkout_dir: /go/src/github.com/Luzifer/wiki
commands:
- make publish
environment:
CGO_ENABLED: 0
GO111MODULE: on
MOD_MODE: readonly

10
Makefile Normal file
View file

@ -0,0 +1,10 @@
default: generate
generate:
docker run --rm -ti -v $(CURDIR):$(CURDIR) -w $(CURDIR)/src node:10-alpine \
sh -exc "npx npm@lts ci && npx npm@lts run build && chown -R $(shell id -u) ../frontend node_modules"
go generate
publish:
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh