Skip to content

Commit

Permalink
chore(release): 39.1.0 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Oct 16, 2023
1 parent cc6668c commit 89c8a9b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26978,6 +26978,13 @@ class Input {
mountDockerSocket() {
return core.getInput('mount-docker-socket') === 'true';
}
getDockerCmdFile() {
const cmdFile = core.getInput('docker-cmd-file');
return !!cmdFile && cmdFile !== '' ? path_1.default.resolve(cmdFile) : null;
}
getDockerUser() {
return core.getInput('docker-user') || null;
}
/**
* Convert to environment variables.
*
Expand Down Expand Up @@ -27047,7 +27054,22 @@ class Renovate {
if (this.input.mountDockerSocket()) {
dockerArguments.push('--volume /var/run/docker.sock:/var/run/docker.sock', `--group-add ${this.getDockerGroupId()}`);
}
const dockerCmdFile = this.input.getDockerCmdFile();
let dockerCmd = null;
if (dockerCmdFile !== null) {
const baseName = path_1.default.basename(dockerCmdFile);
const mountPath = `/${baseName}`;
dockerArguments.push(`--volume ${dockerCmdFile}:${mountPath}`);
dockerCmd = mountPath;
}
const dockerUser = this.input.getDockerUser();
if (dockerUser !== null) {
dockerArguments.push(`--user ${dockerUser}`);
}
dockerArguments.push('--volume /tmp:/tmp', '--rm', this.docker.image());
if (dockerCmd !== null) {
dockerArguments.push(dockerCmd);
}
const command = `docker run ${dockerArguments.join(' ')}`;
const code = await (0, exec_1.exec)(command);
if (code !== 0) {
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": "39.0.6",
"version": "39.1.0",
"private": true,
"description": "GitHub Action to run Renovate self-hosted.",
"license": "GPL-3.0-or-later",
Expand Down

0 comments on commit 89c8a9b

Please sign in to comment.