Skip to content

Commit 75eaf99

Browse files
Wrap unless-check in docker manifests (#23079) (#23081)
Backport #23079 Should fix the following: > failed to render template: Evaluation error: Helper 'unless' called with wrong number of arguments, needed 2 but got 3 https://go.dev/play/p/h7bt7MWKTcv Signed-off-by: jolheiser <[email protected]> Co-authored-by: John Olheiser <[email protected]>
1 parent e67d60d commit 75eaf99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/manifest.rootless.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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}}dev{{/if}}-rootless
22
{{#if build.tags}}
3-
{{#unless contains "-rc" build.tag}}
3+
{{#unless (contains "-rc" build.tag)}}
44
tags:
55
{{#each build.tags}}
66
- {{this}}-rootless

docker/manifest.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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}}dev{{/if}}
22
{{#if build.tags}}
3-
{{#unless contains "-rc" build.tag }}
3+
{{#unless (contains "-rc" build.tag)}}
44
tags:
55
{{#each build.tags}}
66
- {{this}}

0 commit comments

Comments
 (0)