chore(release): 40.3.0 [skip ci]

This commit is contained in:
semantic-release-bot 2024-09-30 10:27:08 +00:00
parent 600d16d9ab
commit 180db15475
2 changed files with 10 additions and 2 deletions

10
dist/index.js vendored
View file

@ -26317,6 +26317,9 @@ class Input {
mountDockerSocket() {
return core.getInput('mount-docker-socket') === 'true';
}
dockerSocketHostPath() {
return core.getInput('docker-socket-host-path') || '/var/run/docker.sock';
}
getDockerCmdFile() {
const cmdFile = core.getInput('docker-cmd-file');
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}`);
}
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();
let dockerCmd = null;

View file

@ -1,6 +1,6 @@
{
"name": "github-action",
"version": "40.2.11",
"version": "40.3.0",
"private": true,
"description": "GitHub Action to run Renovate self-hosted.",
"homepage": "https://github.com/renovatebot/github-action#readme",