Skip to content

Commit

Permalink
Feature: Publish on tag (#5)
Browse files Browse the repository at this point in the history
* Feature: Publish on tag

* Fix: Separate tag and push steps
  • Loading branch information
dpatsora authored Feb 12, 2021
1 parent ba87713 commit e1234df
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,28 @@ steps:
- git fetch --tags authenticated-origin
- bump patch --allow-dirty > .tags
- git push authenticated-origin --tags
when:
event:
- push

- name: Build binary
image: golang:1.14
commands:
- echo $DRONE_TAG > .tags
- make all
when:
event:
- tag

- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: kite_bot_key
files: bin/*
when:
event:
- tag

- name: Build container
image: plugins/docker
Expand All @@ -36,9 +50,13 @@ steps:
from_secret: quay_password
repo: quay.io/openware/goci
registry: quay.io
when:
event:
- push

trigger:
event:
- push
- tag
branch:
- master

0 comments on commit e1234df

Please sign in to comment.