From 3943ed9fd6a632dff46d5931fe4db06670566e5a Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Sat, 29 Jun 2019 09:17:03 -0600 Subject: [PATCH] Customize tags --- .drone.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.drone.yml b/.drone.yml index c737fcd..5acecf1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,6 +33,23 @@ kind: pipeline name: publish steps: +- name: tag + image: alpine + commands: + - echo "$DRONE_COMMIT_SHA" > .tags + when: + event: + exclude: + - tag + +- name: tag-release + image: alpine + commands: + - echo "$DRONE_TAG,latest" > .tags + when: + event: + - tag + - name: docker image: plugins/docker settings: