chore(release): 39.1.0 [skip ci]

This commit is contained in:
semantic-release-bot 2023-10-16 09:20:41 +00:00
parent cc6668c47c
commit 89c8a9b60f
2 changed files with 23 additions and 1 deletions

22
dist/index.js vendored
View file

@ -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.
*
@ -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) {