From c691273ac9f7143ece042d08a640d0c448504a2c Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 17 Oct 2020 22:26:26 +0200 Subject: [PATCH] Add auto-publishing Signed-off-by: Knut Ahlers --- .repo-runner.yaml | 12 ++++++++++++ Makefile | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .repo-runner.yaml create mode 100644 Makefile diff --git a/.repo-runner.yaml b/.repo-runner.yaml new file mode 100644 index 0000000..5f4aaeb --- /dev/null +++ b/.repo-runner.yaml @@ -0,0 +1,12 @@ +--- + +image: "reporunner/golang-alpine" +checkout_dir: /go/src/github.com/Luzifer/mondash-checkgpg + +commands: + - make publish + +environment: + CGO_ENABLED: 0 + GO111MODULE: on + MOD_MODE: readonly diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..613a317 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +default: generate + +generate: + docker run --rm -ti -v $(CURDIR):$(CURDIR) -w $(CURDIR)/src node:12-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