mirror of
https://github.com/renovatebot/github-action.git
synced 2026-12-05 03:42:51 +00:00
BREAKING CHANGE: The action now uses the slim renovate version by default.
22 lines
469 B
TypeScript
22 lines
469 B
TypeScript
import type { Input } from './input';
|
|
|
|
class Docker {
|
|
private static readonly image = 'ghcr.io/renovatebot/renovate';
|
|
|
|
private readonly dockerImage: string;
|
|
private readonly fullTag: string;
|
|
|
|
constructor(input: Input) {
|
|
const tag = input.getVersion();
|
|
|
|
this.dockerImage = input.getDockerImage() ?? Docker.image;
|
|
this.fullTag = tag ?? 'latest';
|
|
}
|
|
|
|
image(): string {
|
|
return `${this.dockerImage}:${this.fullTag}`;
|
|
}
|
|
}
|
|
|
|
export default Docker;
|