summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authordelvh <dev.lh@web.de>2023-06-23 21:52:24 +0200
committerGitHub <noreply@github.com>2023-06-23 19:52:24 +0000
commit65ba2f32ca2d2c10fb7bc147003fd5ec85d8ef9e (patch)
tree39a6c1b96731b20b32034604167c6591aeb3b5e2 /docker
parent62ab55baccfcd11d1f8b5449c1620354b8a7640e (diff)
downloadgitea-65ba2f32ca2d2c10fb7bc147003fd5ec85d8ef9e.tar.gz
gitea-65ba2f32ca2d2c10fb7bc147003fd5ec85d8ef9e.zip
Do not publish docker release images on `-dev` tags (#25471)
Try to prevent what happened with tag `v1.21.0-dev` as outlined in #25193. Unfortunately, we cannot really test if it works as intended as we would need to release a new `dev` tag for that. Fixes #25193 (or at least attempts to). --------- Co-authored-by: jolheiser <john.olheiser@gmail.com>
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 87e6e9dfc2..1ebf5b73c8 100644
--- a/docker/manifest.rootless.tmpl
+++ b/docker/manifest.rootless.tmpl
@@ -1,12 +1,14 @@
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}}nightly{{/if}}-rootless
{{#if build.tags}}
{{#unless (contains "-rc" build.tag)}}
+{{#unless (contains "-dev" build.tag)}}
tags:
{{#each build.tags}}
- {{this}}-rootless
{{/each}}
- "latest-rootless"
{{/unless}}
+{{/unless}}
{{/if}}
manifests:
-
diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl
index 18847064f6..08ccf61b57 100644
--- a/docker/manifest.tmpl
+++ b/docker/manifest.tmpl
@@ -1,12 +1,14 @@
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}}nightly{{/if}}
{{#if build.tags}}
{{#unless (contains "-rc" build.tag)}}
+{{#unless (contains "-dev" build.tag)}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
- "latest"
{{/unless}}
+{{/unless}}
{{/if}}
manifests:
-