feat: Add docker-network input param (#853)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Taras 2024-07-01 10:15:33 +01:00 committed by GitHub
parent f9e5140430
commit c928c7fe82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 0 deletions

View file

@ -90,6 +90,10 @@ class Input {
.filter((v) => !!v);
}
getDockerNetwork(): string {
return core.getInput('docker-network');
}
/**
* Convert to environment variables.
*

View file

@ -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) {