From db96f944f8e1dba5cbd3e245d61c999c2cf6eb22 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 22 Jun 2020 16:32:36 +0200 Subject: [PATCH] Make sure the version includes the tag when building docker images --- .drone.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.drone.yml b/.drone.yml index 20d5710d..843f1b03 100644 --- a/.drone.yml +++ b/.drone.yml @@ -171,6 +171,10 @@ trigger: - push steps: + - name: fetch-tags + image: docker:git + commands: + - git fetch --tags - name: docker image: plugins/docker pull: true @@ -181,6 +185,7 @@ steps: from_secret: docker_password repo: vikunja/frontend auto_tag: true + depends_on: [ fetch-tags ] --- kind: pipeline @@ -196,6 +201,10 @@ trigger: - tag steps: + - name: fetch-tags + image: docker:git + commands: + - git fetch --tags - name: docker image: plugins/docker pull: true @@ -206,6 +215,7 @@ steps: from_secret: docker_password repo: vikunja/frontend auto_tag: true + depends_on: [ fetch-tags ] --- kind: pipeline @@ -223,6 +233,10 @@ trigger: - push steps: + - name: fetch-tags + image: docker:git + commands: + - git fetch --tags - name: docker image: plugins/docker pull: true @@ -233,6 +247,7 @@ steps: from_secret: docker_password repo: vikunja/frontend auto_tag: true + depends_on: [ fetch-tags ] --- kind: pipeline @@ -248,6 +263,10 @@ trigger: - tag steps: + - name: fetch-tags + image: docker:git + commands: + - git fetch --tags - name: docker image: plugins/docker pull: true @@ -258,3 +277,4 @@ steps: from_secret: docker_password repo: vikunja/frontend auto_tag: true + depends_on: [ fetch-tags ]