mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 17:02:36 +00:00
21 lines
469 B
TypeScript
21 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;
|