Skip to content

Commit a084e18

Browse files
authored
Wrap unless-check in docker manifests (#23079)
Should fix the following: > failed to render template: Evaluation error: Helper 'unless' called with wrong number of arguments, needed 2 but got 3 Signed-off-by: jolheiser <[email protected]>
1 parent a78e0b7 commit a084e18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/manifest.rootless.tmpl

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)