mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 17:02:36 +00:00
23 lines
551 B
TypeScript
23 lines
551 B
TypeScript
import type { Input } from './input';
|
|
|
|
class Docker {
|
|
readonly repository = 'renovate/renovate';
|
|
// renovate: datasource=docker depName=renovate/renovate versioning=docker
|
|
readonly tag = '34.118.2-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.fullTag}`;
|
|
}
|
|
|
|
version(): string {
|
|
return this.fullTag;
|
|
}
|
|
}
|
|
|
|
export default Docker;
|