Always fetch tags in drone when building
This commit is contained in:
parent
228c47d79e
commit
7b332808f9
1 changed files with 6 additions and 2 deletions
|
@ -22,8 +22,6 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
when:
|
|
||||||
event: [ tag ]
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
|
@ -137,6 +135,12 @@ trigger:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
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
|
- name: before-static-build
|
||||||
image: karalabe/xgo-latest:latest
|
image: karalabe/xgo-latest:latest
|
||||||
pull: true
|
pull: true
|
||||||
|
|
Loading…
Reference in a new issue