diff options
author | John Olheiser <john.olheiser@gmail.com> | 2023-02-22 16:33:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 16:33:31 -0600 |
commit | a084e182b0fa11621c4a684f937257bb81547b0e (patch) | |
tree | 6db43c14224d23e0eb967d14cb895b274ca8e589 | |
parent | a78e0b7dade16bc6509b943fe86e74962f1b95b6 (diff) | |
download | gitea-a084e182b0fa11621c4a684f937257bb81547b0e.tar.gz gitea-a084e182b0fa11621c4a684f937257bb81547b0e.zip |
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 <john.olheiser@gmail.com>
-rw-r--r-- | docker/manifest.rootless.tmpl | 2 | ||||
-rw-r--r-- | docker/manifest.tmpl | 2 |
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}} |