From 75174c2496e58d861421f453b036cc34cc1052a5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 5 Sep 2021 13:44:05 +0200 Subject: [PATCH] Switch the :latest docker image tag to contain the latest release instead of the latest unstable --- .drone.yml | 22 +++++++++---------- ...test.tmpl => docker-manifest-unstable.tmpl | 8 +++---- docker-manifest.tmpl | 1 + 3 files changed, 16 insertions(+), 15 deletions(-) rename docker-manifest-latest.tmpl => docker-manifest-unstable.tmpl (51%) diff --git a/.drone.yml b/.drone.yml index d82b8f015..ce38bf4b1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -341,7 +341,7 @@ trigger: - "refs/tags/**" steps: - - name: docker-latest + - name: docker-unstable image: plugins/docker:linux-arm pull: true settings: @@ -350,7 +350,7 @@ steps: password: from_secret: docker_password repo: vikunja/frontend - tags: latest-linux-arm + tags: unstable-linux-arm build_args: - USE_RELEASE=true - RELEASE_VERSION=unstable @@ -380,7 +380,7 @@ steps: depends_on: - clone - - name: docker-latest-arm64 + - name: docker-unstable-arm64 image: plugins/docker:linux-arm64 pull: true settings: @@ -389,7 +389,7 @@ steps: password: from_secret: docker_password repo: vikunja/frontend - tags: latest-linux-arm64 + tags: unstable-linux-arm64 build_args: - USE_RELEASE=true - RELEASE_VERSION=unstable @@ -438,7 +438,7 @@ trigger: - "refs/tags/**" steps: - - name: docker-latest + - name: docker-unstable image: plugins/docker:linux-amd64 pull: true settings: @@ -447,7 +447,7 @@ steps: password: from_secret: docker_password repo: vikunja/frontend - tags: latest-linux-amd64 + tags: unstable-linux-amd64 build_args: - USE_RELEASE=true - RELEASE_VERSION=unstable @@ -488,12 +488,12 @@ depends_on: - docker-arm-release steps: - - name: manifest-latest + - name: manifest-unstable pull: always image: plugins/manifest settings: - tags: latest - spec: docker-manifest-latest.tmpl + tags: unstable + spec: docker-manifest-unstable.tmpl password: from_secret: docker_password username: @@ -555,8 +555,8 @@ kind: pipeline type: docker name: update-translations -#depends_on: -# - build +depends_on: + - build trigger: branch: diff --git a/docker-manifest-latest.tmpl b/docker-manifest-unstable.tmpl similarity index 51% rename from docker-manifest-latest.tmpl rename to docker-manifest-unstable.tmpl index e9b19eaca..10ded1e16 100644 --- a/docker-manifest-latest.tmpl +++ b/docker-manifest-unstable.tmpl @@ -1,17 +1,17 @@ -image: vikunja/frontend:latest +image: vikunja/frontend:unstable manifests: - - image: vikunja/frontend:latest-linux-amd64 + image: vikunja/frontend:unstable-linux-amd64 platform: architecture: amd64 os: linux - - image: vikunja/frontend:latest-linux-arm64 + image: vikunja/frontend:unstable-linux-arm64 platform: architecture: arm64 os: linux - - image: vikunja/frontend:latest-linux-arm + image: vikunja/frontend:unstable-linux-arm platform: architecture: arm os: linux diff --git a/docker-manifest.tmpl b/docker-manifest.tmpl index d12a95525..9f9a8177b 100644 --- a/docker-manifest.tmpl +++ b/docker-manifest.tmpl @@ -1,6 +1,7 @@ image: vikunja/frontend:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} {{#if build.tags}} tags: + - latest {{#each build.tags}} - {{this}} {{/each}}