mirror of
https://github.com/go-gitea/gitea
synced 2024-10-31 23:34:25 +00:00
65ba2f32ca
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 <john.olheiser@gmail.com>
25 lines
956 B
Handlebars
25 lines
956 B
Handlebars
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}}
|
|
{{#if build.tags}}
|
|
{{#unless (contains "-rc" build.tag)}}
|
|
{{#unless (contains "-dev" build.tag)}}
|
|
tags:
|
|
{{#each build.tags}}
|
|
- {{this}}
|
|
{{/each}}
|
|
- "latest"
|
|
{{/unless}}
|
|
{{/unless}}
|
|
{{/if}}
|
|
manifests:
|
|
-
|
|
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}}-linux-amd64
|
|
platform:
|
|
architecture: amd64
|
|
os: linux
|
|
-
|
|
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}}-linux-arm64
|
|
platform:
|
|
architecture: arm64
|
|
os: linux
|
|
variant: v8
|