mirror of
https://github.com/docker/setup-docker-action.git
synced 2025-06-19 09:37:12 +02:00
Support downloading binaries from docker images
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@ -21,16 +21,12 @@ actionsToolkit.run(
|
||||
|
||||
const install = new Install({
|
||||
runDir: runDir,
|
||||
source: {
|
||||
type: 'archive',
|
||||
version: input.version,
|
||||
channel: input.channel || 'stable'
|
||||
},
|
||||
source: input.source,
|
||||
contextName: input.context || 'setup-docker-action',
|
||||
daemonConfig: input.daemonConfig
|
||||
});
|
||||
let toolDir;
|
||||
if (!(await Docker.isAvailable()) || input.version) {
|
||||
if (!(await Docker.isAvailable()) || input.source) {
|
||||
await core.group(`Download docker`, async () => {
|
||||
toolDir = await install.download();
|
||||
});
|
||||
|
Reference in New Issue
Block a user