Skip to content

Commit 65ba2f3

Browse files
delvhjolheiser
andauthored
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 <[email protected]>
1 parent 62ab55b commit 65ba2f3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docker/manifest.rootless.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
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
22
{{#if build.tags}}
33
{{#unless (contains "-rc" build.tag)}}
4+
{{#unless (contains "-dev" build.tag)}}
45
tags:
56
{{#each build.tags}}
67
- {{this}}-rootless
78
{{/each}}
89
- "latest-rootless"
910
{{/unless}}
11+
{{/unless}}
1012
{{/if}}
1113
manifests:
1214
-

docker/manifest.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
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}}
22
{{#if build.tags}}
33
{{#unless (contains "-rc" build.tag)}}
4+
{{#unless (contains "-dev" build.tag)}}
45
tags:
56
{{#each build.tags}}
67
- {{this}}
78
{{/each}}
89
- "latest"
910
{{/unless}}
11+
{{/unless}}
1012
{{/if}}
1113
manifests:
1214
-

0 commit comments

Comments
 (0)