Switch the :latest docker image tag to contain the latest release instead of the latest unstable

This commit is contained in:
kolaente 2021-09-05 13:44:05 +02:00
parent e0c9332634
commit 75174c2496
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
3 changed files with 16 additions and 15 deletions

View file

@ -341,7 +341,7 @@ trigger:
- "refs/tags/**" - "refs/tags/**"
steps: steps:
- name: docker-latest - name: docker-unstable
image: plugins/docker:linux-arm image: plugins/docker:linux-arm
pull: true pull: true
settings: settings:
@ -350,7 +350,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
tags: latest-linux-arm tags: unstable-linux-arm
build_args: build_args:
- USE_RELEASE=true - USE_RELEASE=true
- RELEASE_VERSION=unstable - RELEASE_VERSION=unstable
@ -380,7 +380,7 @@ steps:
depends_on: depends_on:
- clone - clone
- name: docker-latest-arm64 - name: docker-unstable-arm64
image: plugins/docker:linux-arm64 image: plugins/docker:linux-arm64
pull: true pull: true
settings: settings:
@ -389,7 +389,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
tags: latest-linux-arm64 tags: unstable-linux-arm64
build_args: build_args:
- USE_RELEASE=true - USE_RELEASE=true
- RELEASE_VERSION=unstable - RELEASE_VERSION=unstable
@ -438,7 +438,7 @@ trigger:
- "refs/tags/**" - "refs/tags/**"
steps: steps:
- name: docker-latest - name: docker-unstable
image: plugins/docker:linux-amd64 image: plugins/docker:linux-amd64
pull: true pull: true
settings: settings:
@ -447,7 +447,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
tags: latest-linux-amd64 tags: unstable-linux-amd64
build_args: build_args:
- USE_RELEASE=true - USE_RELEASE=true
- RELEASE_VERSION=unstable - RELEASE_VERSION=unstable
@ -488,12 +488,12 @@ depends_on:
- docker-arm-release - docker-arm-release
steps: steps:
- name: manifest-latest - name: manifest-unstable
pull: always pull: always
image: plugins/manifest image: plugins/manifest
settings: settings:
tags: latest tags: unstable
spec: docker-manifest-latest.tmpl spec: docker-manifest-unstable.tmpl
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -555,8 +555,8 @@ kind: pipeline
type: docker type: docker
name: update-translations name: update-translations
#depends_on: depends_on:
# - build - build
trigger: trigger:
branch: branch:

View file

@ -1,17 +1,17 @@
image: vikunja/frontend:latest image: vikunja/frontend:unstable
manifests: manifests:
- -
image: vikunja/frontend:latest-linux-amd64 image: vikunja/frontend:unstable-linux-amd64
platform: platform:
architecture: amd64 architecture: amd64
os: linux os: linux
- -
image: vikunja/frontend:latest-linux-arm64 image: vikunja/frontend:unstable-linux-arm64
platform: platform:
architecture: arm64 architecture: arm64
os: linux os: linux
- -
image: vikunja/frontend:latest-linux-arm image: vikunja/frontend:unstable-linux-arm
platform: platform:
architecture: arm architecture: arm
os: linux os: linux

View file

@ -1,6 +1,7 @@
image: vikunja/frontend:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} image: vikunja/frontend:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}} {{#if build.tags}}
tags: tags:
- latest
{{#each build.tags}} {{#each build.tags}}
- {{this}} - {{this}}
{{/each}} {{/each}}