Skip to content

Commit e1234df

Browse files
authored
Feature: Publish on tag (#5)
* Feature: Publish on tag * Fix: Separate tag and push steps
1 parent ba87713 commit e1234df

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.drone.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,28 @@ steps:
1818
- git fetch --tags authenticated-origin
1919
- bump patch --allow-dirty > .tags
2020
- git push authenticated-origin --tags
21+
when:
22+
event:
23+
- push
24+
25+
- name: Build binary
26+
image: golang:1.14
27+
commands:
28+
- echo $DRONE_TAG > .tags
2129
- make all
30+
when:
31+
event:
32+
- tag
2233

2334
- name: publish
2435
image: plugins/github-release
2536
settings:
2637
api_key:
2738
from_secret: kite_bot_key
2839
files: bin/*
40+
when:
41+
event:
42+
- tag
2943

3044
- name: Build container
3145
image: plugins/docker
@@ -36,9 +50,13 @@ steps:
3650
from_secret: quay_password
3751
repo: quay.io/openware/goci
3852
registry: quay.io
53+
when:
54+
event:
55+
- push
3956

4057
trigger:
4158
event:
4259
- push
60+
- tag
4361
branch:
4462
- master

0 commit comments

Comments
 (0)