mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-17 09:22:36 +00:00
feat(volume-mount): mount docker volumes as input (#797)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
parent
6bd5cd83c4
commit
fcce0a0ee8
4 changed files with 44 additions and 1 deletions
|
|
@ -53,7 +53,11 @@ class Renovate {
|
|||
dockerArguments.push(`--user ${dockerUser}`);
|
||||
}
|
||||
|
||||
dockerArguments.push('--volume /tmp:/tmp', '--rm', this.docker.image());
|
||||
for (const volumeMount of this.input.getDockerVolumeMounts()) {
|
||||
dockerArguments.push(`--volume ${volumeMount}`);
|
||||
}
|
||||
|
||||
dockerArguments.push('--rm', this.docker.image());
|
||||
|
||||
if (dockerCmd !== null) {
|
||||
dockerArguments.push(dockerCmd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue