feat: Allow using non-slim renovate image (#626)

Signed-off-by: Mario Valderrama <mario.valderrama@ionos.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Mario Valderrama 2023-01-23 15:39:19 +01:00 committed by GitHub
parent c9f465c39e
commit e18dc08b62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 4 deletions

View file

@ -1,15 +1,22 @@
import type { Input } from './input';
class Docker {
readonly repository = 'renovate/renovate';
// renovate: datasource=docker depName=renovate/renovate versioning=docker
readonly tag = '34.109.1-slim';
readonly tagSuffix = '-slim';
readonly fullTag: string;
constructor(private input: Input) {
this.fullTag = input.useSlim() ? this.tag : this.tag.replace(this.tagSuffix, '');
}
image(): string {
return `${this.repository}:${this.tag}`;
return `${this.repository}:${this.fullTag}`;
}
version(): string {
return this.tag.replace(this.tagSuffix, '');
return this.fullTag;
}
}