set-host input to set DOCKER_HOST env var

This commit is contained in:
CrazyMax
2024-02-29 16:32:34 +01:00
parent 38c07112bd
commit 7d4fd999a5
6 changed files with 43 additions and 2 deletions

View File

@ -39,6 +39,13 @@ actionsToolkit.run(
core.info(`sock=${sockPath}`);
core.setOutput('sock', sockPath);
});
if (input.setHost) {
await core.group(`Setting Docker host`, async () => {
core.exportVariable('DOCKER_HOST', sockPath);
core.info(`DOCKER_HOST=${sockPath}`);
});
}
}
await core.group(`Docker info`, async () => {