From 496c38de8ecc7f23c8bb5cddaaed8a24738f2bce Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 5 Sep 2021 14:39:56 +0200 Subject: [PATCH] Switch the :latest docker image tag to contain the latest release instead of the latest unstable --- .drone.yml | 40 ++++++++++++++----- ...test.tmpl => docker-manifest-unstable.tmpl | 8 ++-- 2 files changed, 33 insertions(+), 15 deletions(-) rename docker-manifest-latest.tmpl => docker-manifest-unstable.tmpl (54%) diff --git a/.drone.yml b/.drone.yml index 37d3f14ab5..2a690b807d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -662,7 +662,7 @@ steps: image: docker:git commands: - git fetch --tags - - name: docker-arm-latest + - name: docker-arm-unstable image: plugins/docker:linux-arm pull: true settings: @@ -671,7 +671,7 @@ steps: password: from_secret: docker_password repo: vikunja/api - tags: latest-linux-arm + tags: unstable-linux-arm depends_on: [ fetch-tags ] when: ref: @@ -693,7 +693,7 @@ steps: ref: - "refs/tags/**" - - name: docker-arm64-latest + - name: docker-arm64-unstable image: plugins/docker:linux-arm64 pull: true settings: @@ -702,7 +702,7 @@ steps: password: from_secret: docker_password repo: vikunja/api - tags: latest-linux-arm64 + tags: unstable-linux-arm64 depends_on: [ fetch-tags ] when: ref: @@ -746,7 +746,8 @@ steps: image: docker:git commands: - git fetch --tags - - name: docker-latest + + - name: docker-unstable image: plugins/docker:linux-amd64 pull: true settings: @@ -755,7 +756,7 @@ steps: password: from_secret: docker_password repo: vikunja/api - tags: latest-linux-amd64 + tags: unstable-linux-amd64 depends_on: [ fetch-tags ] when: ref: @@ -792,13 +793,13 @@ depends_on: - docker-arm-release steps: - - name: manifest-latest + - name: manifest-unstable pull: always image: plugins/manifest settings: - tags: latest + tags: unstable ignore_missing: true - spec: docker-manifest-latest.tmpl + spec: docker-manifest-unstable.tmpl password: from_secret: docker_password username: @@ -807,7 +808,7 @@ steps: ref: - refs/heads/main - - name: manifest + - name: manifest-release pull: always image: plugins/manifest settings: @@ -822,6 +823,23 @@ steps: ref: - "refs/tags/**" + - name: manifest-release-latest + pull: always + image: plugins/manifest + depends_on: + - clone + settings: + tags: latest + ignore_missing: true + spec: docker-manifest.tmpl + password: + from_secret: docker_password + username: + from_secret: docker_username + when: + ref: + - "refs/tags/**" + --- kind: pipeline type: docker @@ -856,6 +874,6 @@ steps: - failure --- kind: signature -hmac: 2cee8cac22aae8b4a25ffa28c47d9defc6ce227e0d262b57677f9adbf8badc3e +hmac: 110b782e9b704b4b3b3d618678383718c92262cf3c214f4fe6705d40cd3da367 ... diff --git a/docker-manifest-latest.tmpl b/docker-manifest-unstable.tmpl similarity index 54% rename from docker-manifest-latest.tmpl rename to docker-manifest-unstable.tmpl index bafecd5e3c..d06b475367 100644 --- a/docker-manifest-latest.tmpl +++ b/docker-manifest-unstable.tmpl @@ -1,17 +1,17 @@ -image: vikunja/api:latest +image: vikunja/api:unstable manifests: - - image: vikunja/api:latest-linux-amd64 + image: vikunja/api:unstable-linux-amd64 platform: architecture: amd64 os: linux - - image: vikunja/api:latest-linux-arm64 + image: vikunja/api:unstable-linux-arm64 platform: architecture: arm64 os: linux - - image: vikunja/api:latest-linux-arm + image: vikunja/api:unstable-linux-arm platform: architecture: arm os: linux