mirror of
https://github.com/docker/setup-buildx-action.git
synced 2024-11-24 23:30:56 -05:00
Merge pull request #161 from crazy-max/fix-remote
skip setting buildkitd flags and config for remote driver
This commit is contained in:
commit
f385c9ed95
3 changed files with 9 additions and 7 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -63,7 +63,7 @@ async function run(): Promise<void> {
|
||||||
await context.asyncForEach(inputs.driverOpts, async driverOpt => {
|
await context.asyncForEach(inputs.driverOpts, async driverOpt => {
|
||||||
createArgs.push('--driver-opt', driverOpt);
|
createArgs.push('--driver-opt', driverOpt);
|
||||||
});
|
});
|
||||||
if (inputs.buildkitdFlags) {
|
if (inputs.driver != 'remote' && inputs.buildkitdFlags) {
|
||||||
createArgs.push('--buildkitd-flags', inputs.buildkitdFlags);
|
createArgs.push('--buildkitd-flags', inputs.buildkitdFlags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,11 +73,13 @@ async function run(): Promise<void> {
|
||||||
if (inputs.endpoint) {
|
if (inputs.endpoint) {
|
||||||
createArgs.push(inputs.endpoint);
|
createArgs.push(inputs.endpoint);
|
||||||
}
|
}
|
||||||
|
if (inputs.driver != 'remote') {
|
||||||
if (inputs.config) {
|
if (inputs.config) {
|
||||||
createArgs.push('--config', await buildx.getConfigFile(inputs.config));
|
createArgs.push('--config', await buildx.getConfigFile(inputs.config));
|
||||||
} else if (inputs.configInline) {
|
} else if (inputs.configInline) {
|
||||||
createArgs.push('--config', await buildx.getConfigInline(inputs.configInline));
|
createArgs.push('--config', await buildx.getConfigInline(inputs.configInline));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const createCmd = buildx.getCommand(createArgs, standalone);
|
const createCmd = buildx.getCommand(createArgs, standalone);
|
||||||
await exec.exec(createCmd.commandLine, createCmd.args);
|
await exec.exec(createCmd.commandLine, createCmd.args);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
|
Loading…
Reference in a new issue