summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorYarden Shoham <hrsi88@gmail.com>2023-02-23 02:34:47 +0200
committerGitHub <noreply@github.com>2023-02-23 01:34:47 +0100
commit75eaf9907604b1689e491b4fb4354b2d0b9ac3b6 (patch)
tree796499c07d2043b4ba859928f0a050100f6ebb51 /docker
parente67d60d3368614c87b3d15ed9948fa17209bb120 (diff)
downloadgitea-75eaf9907604b1689e491b4fb4354b2d0b9ac3b6.tar.gz
gitea-75eaf9907604b1689e491b4fb4354b2d0b9ac3b6.zip
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 <john.olheiser@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/manifest.rootless.tmpl2
-rw-r--r--docker/manifest.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/manifest.rootless.tmpl b/docker/manifest.rootless.tmpl
index 46a397c828..ef48dd1684 100644
--- a/docker/manifest.rootless.tmpl
+++ b/docker/manifest.rootless.tmpl
@@ -1,6 +1,6 @@
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}}
+{{#unless (contains "-rc" build.tag)}}
tags:
{{#each build.tags}}
- {{this}}-rootless
diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl
index b4ba5a76ed..018d87e979 100644
--- a/docker/manifest.tmpl
+++ b/docker/manifest.tmpl
@@ -1,6 +1,6 @@
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 }}
+{{#unless (contains "-rc" build.tag)}}
tags:
{{#each build.tags}}
- {{this}}