mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 17:02:36 +00:00
chore(release): 40.3.0 [skip ci]
This commit is contained in:
parent
600d16d9ab
commit
180db15475
2 changed files with 10 additions and 2 deletions
10
dist/index.js
vendored
10
dist/index.js
vendored
|
|
@ -26317,6 +26317,9 @@ class Input {
|
||||||
mountDockerSocket() {
|
mountDockerSocket() {
|
||||||
return core.getInput('mount-docker-socket') === 'true';
|
return core.getInput('mount-docker-socket') === 'true';
|
||||||
}
|
}
|
||||||
|
dockerSocketHostPath() {
|
||||||
|
return core.getInput('docker-socket-host-path') || '/var/run/docker.sock';
|
||||||
|
}
|
||||||
getDockerCmdFile() {
|
getDockerCmdFile() {
|
||||||
const cmdFile = core.getInput('docker-cmd-file');
|
const cmdFile = core.getInput('docker-cmd-file');
|
||||||
return !!cmdFile && cmdFile !== '' ? path_1.default.resolve(cmdFile) : null;
|
return !!cmdFile && cmdFile !== '' ? path_1.default.resolve(cmdFile) : null;
|
||||||
|
|
@ -26404,7 +26407,12 @@ class Renovate {
|
||||||
dockerArguments.push(`--env ${configurationFile.key}=${mountPath}`, `--volume ${configurationFile.value}:${mountPath}`);
|
dockerArguments.push(`--env ${configurationFile.key}=${mountPath}`, `--volume ${configurationFile.value}:${mountPath}`);
|
||||||
}
|
}
|
||||||
if (this.input.mountDockerSocket()) {
|
if (this.input.mountDockerSocket()) {
|
||||||
dockerArguments.push('--volume /var/run/docker.sock:/var/run/docker.sock', `--group-add ${await this.getDockerGroupId()}`);
|
const sockPath = this.input.dockerSocketHostPath();
|
||||||
|
const stat = await promises_1.default.stat(sockPath);
|
||||||
|
if (!stat.isSocket()) {
|
||||||
|
throw new Error(`docker socket host path '${sockPath}' MUST exist and be a socket`);
|
||||||
|
}
|
||||||
|
dockerArguments.push(`--volume ${sockPath}:/var/run/docker.sock`, `--group-add ${await this.getDockerGroupId()}`);
|
||||||
}
|
}
|
||||||
const dockerCmdFile = this.input.getDockerCmdFile();
|
const dockerCmdFile = this.input.getDockerCmdFile();
|
||||||
let dockerCmd = null;
|
let dockerCmd = null;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "github-action",
|
"name": "github-action",
|
||||||
"version": "40.2.11",
|
"version": "40.3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "GitHub Action to run Renovate self-hosted.",
|
"description": "GitHub Action to run Renovate self-hosted.",
|
||||||
"homepage": "https://github.com/renovatebot/github-action#readme",
|
"homepage": "https://github.com/renovatebot/github-action#readme",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue