From 268e344128e18f05e47f4c4f9753d2564a08019b Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 14 Feb 2021 22:11:12 +0100 Subject: [PATCH] Fix multiarch docker image building --- docker-manifest.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-manifest.tmpl b/docker-manifest.tmpl index 4561c5f0..18cf567f 100644 --- a/docker-manifest.tmpl +++ b/docker-manifest.tmpl @@ -1,4 +1,4 @@ -image: vikunja/api:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +image: vikunja/api:{{#if build.tag}}{{#equal build.tag "main"}}latest{{else}}{{trimPrefix "v" build.tag}}{{/equal}}{{else}}latest{{/if}} {{#if build.tags}} tags: {{#each build.tags}} @@ -7,17 +7,17 @@ tags: {{/if}} manifests: - - image: vikunja/api:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + image: vikunja/api:{{#if build.tag}}{{#equal build.tag "main"}}{{else}}{{trimPrefix "v" build.tag}}{{/equal}}-{{/if}}linux-amd64 platform: architecture: amd64 os: linux - - image: vikunja/api:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + image: vikunja/api:{{#if build.tag}}{{#equal build.tag "main"}}{{else}}{{trimPrefix "v" build.tag}}{{/equal}}-{{/if}}linux-arm64 platform: architecture: arm64 os: linux - - image: vikunja/api:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + image: vikunja/api:{{#if build.tag}}{{#equal build.tag "main"}}{{else}}{{trimPrefix "v" build.tag}}{{/equal}}-{{/if}}linux-arm platform: architecture: arm os: linux