mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-17 01:12:35 +00:00
feat: allow override renovate image (#739)
Co-authored-by: Oreste Di Modugno <oreste.dimodugno@adevinta.com> Co-authored-by: Rhys Arkins <rhys@arkins.net> Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
parent
bba1483352
commit
53fd09be22
4 changed files with 53 additions and 1 deletions
|
|
@ -2,10 +2,14 @@ import type { Input } from './input';
|
|||
|
||||
class Docker {
|
||||
private static readonly repository = 'renovate/renovate';
|
||||
|
||||
private readonly dockerImage: string;
|
||||
private readonly fullTag: string;
|
||||
|
||||
constructor(input: Input) {
|
||||
const tag = input.getVersion();
|
||||
|
||||
this.dockerImage = input.getDockerImage() ?? Docker.repository;
|
||||
this.fullTag = input.useSlim()
|
||||
? tag
|
||||
? `${tag}-slim`
|
||||
|
|
@ -14,7 +18,7 @@ class Docker {
|
|||
}
|
||||
|
||||
image(): string {
|
||||
return `${Docker.repository}:${this.fullTag}`;
|
||||
return `${this.dockerImage}:${this.fullTag}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue