Skip to content

Commit

Permalink
Feature: Add a CI step to publish goci binary (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpatsora authored Feb 12, 2021
1 parent 3b72b5f commit ba87713
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

0 comments on commit ba87713

Please sign in to comment.