mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 17:02:36 +00:00
chore(release): 37.1.0 [skip ci]
This commit is contained in:
parent
a39fd06d44
commit
a272cc3652
2 changed files with 6 additions and 2 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
|
@ -3943,6 +3943,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
class Docker {
|
||||
constructor(input) {
|
||||
const tag = input.getVersion();
|
||||
this.dockerImage = input.getDockerImage() ?? Docker.repository;
|
||||
this.fullTag = input.useSlim()
|
||||
? tag
|
||||
? `${tag}-slim`
|
||||
|
|
@ -3950,7 +3951,7 @@ class Docker {
|
|||
: tag ?? 'latest';
|
||||
}
|
||||
image() {
|
||||
return `${Docker.repository}:${this.fullTag}`;
|
||||
return `${this.dockerImage}:${this.fullTag}`;
|
||||
}
|
||||
}
|
||||
Docker.repository = 'renovate/renovate';
|
||||
|
|
@ -4082,6 +4083,9 @@ class Input {
|
|||
useSlim() {
|
||||
return core.getInput('useSlim') !== 'false';
|
||||
}
|
||||
getDockerImage() {
|
||||
return core.getInput('renovate-image') || null;
|
||||
}
|
||||
getVersion() {
|
||||
const version = core.getInput('renovate-version');
|
||||
return !!version && version !== '' ? version : null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue