mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 08:52:35 +00:00
feat: Add docker-network input param (#853)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
parent
f9e5140430
commit
c928c7fe82
4 changed files with 21 additions and 0 deletions
|
|
@ -90,6 +90,10 @@ class Input {
|
|||
.filter((v) => !!v);
|
||||
}
|
||||
|
||||
getDockerNetwork(): string {
|
||||
return core.getInput('docker-network');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert to environment variables.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -57,6 +57,11 @@ class Renovate {
|
|||
dockerArguments.push(`--volume ${volumeMount}`);
|
||||
}
|
||||
|
||||
const dockerNetwork = this.input.getDockerNetwork();
|
||||
if (dockerNetwork) {
|
||||
dockerArguments.push(`--network ${dockerNetwork}`);
|
||||
}
|
||||
|
||||
dockerArguments.push('--rm', this.docker.image());
|
||||
|
||||
if (dockerCmd !== null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue