From e1234df13ae94dbe46660ec4c756572d5823cfd4 Mon Sep 17 00:00:00 2001 From: Danylo Patsora Date: Fri, 12 Feb 2021 15:25:29 +0200 Subject: [PATCH] Feature: Publish on tag (#5) * Feature: Publish on tag * Fix: Separate tag and push steps --- .drone.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.drone.yml b/.drone.yml index 7dde06b..6627b65 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,7 +18,18 @@ 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 @@ -26,6 +37,9 @@ steps: api_key: from_secret: kite_bot_key files: bin/* + when: + event: + - tag - name: Build container image: plugins/docker @@ -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