From ba877138a5b8c6a7e71e6b28d56088aa1b7f9f5c Mon Sep 17 00:00:00 2001 From: Danylo Patsora Date: Fri, 12 Feb 2021 14:47:07 +0200 Subject: [PATCH] Feature: Add a CI step to publish goci binary (#4) --- .drone.yml | 8 ++++++++ Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e92c098..7dde06b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,6 +18,14 @@ steps: - git fetch --tags authenticated-origin - bump patch --allow-dirty > .tags - git push authenticated-origin --tags + - make all + + - name: publish + image: plugins/github-release + settings: + api_key: + from_secret: kite_bot_key + files: bin/* - name: Build container image: plugins/docker diff --git a/Makefile b/Makefile index 06780e6..356c657 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ APPS := goci all: $(APPS) $(APPS): - go build --ldflags "-X main.Version=$$(cat .tags)" -o bin/$@ ./cmd/$@ + CGO_ENABLED=0 go build --ldflags "-X main.Version=$$(cat .tags)" -o bin/$@ ./cmd/$@ clean: rm -rf bin/*