feat!: use semantic release (#704)

This commit is contained in:
Michael Kriese 2023-03-13 15:21:58 +01:00 committed by GitHub
parent 8463758e93
commit 94faa7df1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 2317 additions and 389 deletions

View file

@ -1,24 +1,21 @@
import type { Input } from './input';
// renovate: datasource=docker depName=renovate/renovate versioning=docker
const tag = '35.2.0-slim';
class Docker {
private static readonly repository = 'renovate/renovate';
private static readonly tagSuffix = '-slim';
private readonly fullTag: string;
constructor(input: Input) {
this.fullTag = input.useSlim() ? tag : tag.replace(Docker.tagSuffix, '');
const tag = input.getVersion();
this.fullTag = input.useSlim()
? tag
? `${tag}-slim`
: 'slim'
: tag ?? 'latest';
}
image(): string {
return `${Docker.repository}:${this.fullTag}`;
}
static version(): string {
return tag.replace(Docker.tagSuffix, '');
}
}
export default Docker;