Skip to content

Commit ba87713

Browse files
authored
Feature: Add a CI step to publish goci binary (#4)
1 parent 3b72b5f commit ba87713

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.drone.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ steps:
1818
- git fetch --tags authenticated-origin
1919
- bump patch --allow-dirty > .tags
2020
- git push authenticated-origin --tags
21+
- make all
22+
23+
- name: publish
24+
image: plugins/github-release
25+
settings:
26+
api_key:
27+
from_secret: kite_bot_key
28+
files: bin/*
2129

2230
- name: Build container
2331
image: plugins/docker

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ APPS := goci
55
all: $(APPS)
66

77
$(APPS):
8-
go build --ldflags "-X main.Version=$$(cat .tags)" -o bin/$@ ./cmd/$@
8+
CGO_ENABLED=0 go build --ldflags "-X main.Version=$$(cat .tags)" -o bin/$@ ./cmd/$@
99

1010
clean:
1111
rm -rf bin/*

0 commit comments

Comments
 (0)