From ef5bc5952580eaabad1710400b77f324243e5d2a Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 8 Dec 2017 12:58:02 +0100 Subject: [PATCH] Switch to Github publishing Signed-off-by: Knut Ahlers --- .gobuilder.yml | 7 ------- .repo-runner.yaml | 10 ++++++++++ Makefile | 4 ++++ 3 files changed, 14 insertions(+), 7 deletions(-) delete mode 100644 .gobuilder.yml create mode 100644 .repo-runner.yaml diff --git a/.gobuilder.yml b/.gobuilder.yml deleted file mode 100644 index 3f50a9f..0000000 --- a/.gobuilder.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -build_matrix: - general: - ldflags: - - "-X main.version $(git describe --tags)" -artifacts: - templates: templates diff --git a/.repo-runner.yaml b/.repo-runner.yaml new file mode 100644 index 0000000..89a6039 --- /dev/null +++ b/.repo-runner.yaml @@ -0,0 +1,10 @@ +--- + +image: "quay.io/luzifer/repo-runner-image" +checkout_dir: /go/src/github.com/Luzifer/cloudkeys-go + +commands: + - make publish + +environment: + CGO_ENABLED: 0 diff --git a/Makefile b/Makefile index 0264414..0982aa7 100644 --- a/Makefile +++ b/Makefile @@ -21,3 +21,7 @@ bindata.go: gen_css gen_js $(GOPATH)/bin/godep: go get github.com/tools/godep + +publish: + curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh + bash golang.sh