mirror of
https://github.com/docker/setup-docker-action.git
synced 2025-06-20 01:57:13 +02:00
set-host input to set DOCKER_HOST env var
This commit is contained in:
@ -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 () => {
|
||||
|
Reference in New Issue
Block a user