Always fetch tags in drone when building

This commit is contained in:
kolaente 2019-04-21 22:39:35 +02:00
parent 228c47d79e
commit 7b332808f9
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 2 deletions

View File

@ -22,8 +22,6 @@ steps:
image: docker:git
commands:
- git fetch --tags
when:
event: [ tag ]
- name: build
image: vikunja/golang-build:latest
@ -137,6 +135,12 @@ trigger:
- push
steps:
# Needed to get the versions right as they depend on tags
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: before-static-build
image: karalabe/xgo-latest:latest
pull: true