aboutsummaryrefslogtreecommitdiffstats
path: root/docker/manifest.tmpl
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2021-07-14 13:08:43 -0400
committerGitHub <noreply@github.com>2021-07-14 18:08:43 +0100
commite180456983e4267e8a1a37088775b5d410900635 (patch)
tree4a46313b62ca83540dba9295d2cea2767d171937 /docker/manifest.tmpl
parent14b6257160910ea5358acee31fd526c1dad77236 (diff)
downloadgitea-e180456983e4267e8a1a37088775b5d410900635.tar.gz
gitea-e180456983e4267e8a1a37088775b5d410900635.zip
Change docker tag logic (#16421)
* Change docker logic * Apply suggestions from code review Co-authored-by: Kyle D. <kdumontnu@gmail.com> * docs Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Kyle D. <kdumontnu@gmail.com>
Diffstat (limited to 'docker/manifest.tmpl')
-rw-r--r--docker/manifest.tmpl9
1 files changed, 5 insertions, 4 deletions
diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl
index 9678449628..43a57f7f27 100644
--- a/docker/manifest.tmpl
+++ b/docker/manifest.tmpl
@@ -1,19 +1,20 @@
-image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
+image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}dev{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
+ - "latest"
{{/if}}
manifests:
-
- image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
+ image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{else}}dev-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
-
- image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
+ image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{else}}dev-{{/if}}linux-arm64
platform:
architecture: arm64
os: linux
- variant: v8
+ variant: v8 \ No newline at end of file