Skip to content

Adjust manifest to prevent tagging latest on rcs #22811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
3 changes: 3 additions & 0 deletions docker/manifest.rootless.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ tags:
{{#each build.tags}}
- {{this}}-rootless
{{/each}}
{{#if contains "-rc" (first build.tags) }}
- "latest-rootless"
{{/if}}
{{/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}}dev{{/if}}-linux-amd64-rootless
Expand Down
2 changes: 2 additions & 0 deletions docker/manifest.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{#unless contains "-rc" (first build.tags) }}
- "latest"
{{/unless}}
{{/if}}
manifests:
-
Expand Down