From 3d1f4bffd0212aec19b3369997cb3ee54cf0c045 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 19 Jun 2017 13:54:45 +0200 Subject: [PATCH] Add building blocks Signed-off-by: Knut Ahlers --- .repo-runner.yaml | 10 ++++++++++ Makefile | 8 ++++++++ 2 files changed, 18 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..3f35122 --- /dev/null +++ b/.repo-runner.yaml @@ -0,0 +1,10 @@ +--- + +image: "quay.io/luzifer/repo-runner-image" +checkout_dir: /go/src/github.com/Luzifer/vault-patch + +commands: + - make publish + +environment: + CGO_ENABLED: 0 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d9854ec --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +default: install + +publish: + curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh + bash golang.sh + +install: + go install -ldflags='-X main.version=$(shell git describe --tags || git rev-parse --short HEAD)'