Skip to content

Commit

Permalink
chore(release): 40.3.0 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Sep 30, 2024
1 parent 600d16d commit 180db15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 180db15

Please sign in to comment.