daemon-config input

This commit is contained in:
CrazyMax
2023-08-27 14:43:03 +02:00
parent d298db0f7d
commit e5467b74ef
6 changed files with 80 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import * as core from '@actions/core';
export interface Inputs {
version: string;
channel: string;
daemonConfig?: string;
context: string;
}
@@ -10,6 +11,7 @@ export function getInputs(): Inputs {
return {
version: core.getInput('version') || 'latest',
channel: core.getInput('channel'),
daemonConfig: core.getInput('daemon-config'),
context: core.getInput('context')
};
}

View File

@@ -23,7 +23,8 @@ actionsToolkit.run(
runDir: runDir,
version: input.version,
channel: input.channel || 'stable',
contextName: input.context || 'setup-docker-action'
contextName: input.context || 'setup-docker-action',
daemonConfig: input.daemonConfig
});
let toolDir;
if (!(await Docker.isAvailable()) || input.version) {