Make sure the version includes the tag when building docker images

This commit is contained in:
kolaente 2020-06-22 16:32:36 +02:00
parent b0279f24f8
commit db96f944f8
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -171,6 +171,10 @@ trigger:
- push - push
steps: steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: docker - name: docker
image: plugins/docker image: plugins/docker
pull: true pull: true
@ -181,6 +185,7 @@ steps:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
auto_tag: true auto_tag: true
depends_on: [ fetch-tags ]
--- ---
kind: pipeline kind: pipeline
@ -196,6 +201,10 @@ trigger:
- tag - tag
steps: steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: docker - name: docker
image: plugins/docker image: plugins/docker
pull: true pull: true
@ -206,6 +215,7 @@ steps:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
auto_tag: true auto_tag: true
depends_on: [ fetch-tags ]
--- ---
kind: pipeline kind: pipeline
@ -223,6 +233,10 @@ trigger:
- push - push
steps: steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: docker - name: docker
image: plugins/docker image: plugins/docker
pull: true pull: true
@ -233,6 +247,7 @@ steps:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
auto_tag: true auto_tag: true
depends_on: [ fetch-tags ]
--- ---
kind: pipeline kind: pipeline
@ -248,6 +263,10 @@ trigger:
- tag - tag
steps: steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: docker - name: docker
image: plugins/docker image: plugins/docker
pull: true pull: true
@ -258,3 +277,4 @@ steps:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
auto_tag: true auto_tag: true
depends_on: [ fetch-tags ]