aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2023-02-19 14:24:08 +0000
committerGitHub <noreply@github.com>2023-02-19 09:24:08 -0500
commit54d7435d28c8f6241a39bd0f10b806ac7f07ad80 (patch)
tree63228a13f40a1c17594c31650db41fcfa9f6b67f /docker
parent6cb76bf1df581cf554670c533a1801b46a74909e (diff)
downloadgitea-54d7435d28c8f6241a39bd0f10b806ac7f07ad80.tar.gz
gitea-54d7435d28c8f6241a39bd0f10b806ac7f07ad80.zip
Adjust manifest to prevent tagging latest on rcs (#22811)
Diffstat (limited to 'docker')
-rw-r--r--docker/manifest.rootless.tmpl2
-rw-r--r--docker/manifest.tmpl2
2 files changed, 4 insertions, 0 deletions
diff --git a/docker/manifest.rootless.tmpl b/docker/manifest.rootless.tmpl
index 9559416470..46a397c828 100644
--- a/docker/manifest.rootless.tmpl
+++ b/docker/manifest.rootless.tmpl
@@ -1,10 +1,12 @@
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-rootless
{{#if build.tags}}
+{{#unless contains "-rc" build.tag}}
tags:
{{#each build.tags}}
- {{this}}-rootless
{{/each}}
- "latest-rootless"
+{{/unless}}
{{/if}}
manifests:
-
diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl
index 4cd4ea4ea2..b4ba5a76ed 100644
--- a/docker/manifest.tmpl
+++ b/docker/manifest.tmpl
@@ -1,10 +1,12 @@
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}
{{#if build.tags}}
+{{#unless contains "-rc" build.tag }}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
- "latest"
+{{/unless}}
{{/if}}
manifests:
-