mirror of
https://github.com/docker/setup-buildx-action.git
synced 2024-12-27 16:31:12 +08:00
Merge pull request #43 from crazy-max/remove-tempfix
Remove hardcoded buildkit container image moby/buildkit:v0.8-beta
This commit is contained in:
commit
5c0276ad2c
8
dist/index.js
generated
vendored
8
dist/index.js
generated
vendored
@ -541,17 +541,9 @@ function run() {
|
||||
core.startGroup(`🔨 Creating a new builder instance`);
|
||||
let createArgs = ['buildx', 'create', '--name', builderName, '--driver', inputs.driver];
|
||||
if (semver.satisfies(buildxVersion, '>=0.3.0')) {
|
||||
let hasImageDriverOpt = false;
|
||||
yield context.asyncForEach(inputs.driverOpts, (driverOpt) => __awaiter(this, void 0, void 0, function* () {
|
||||
if (driverOpt.startsWith('image=')) {
|
||||
hasImageDriverOpt = true;
|
||||
}
|
||||
createArgs.push('--driver-opt', driverOpt);
|
||||
}));
|
||||
if (!hasImageDriverOpt) {
|
||||
//FIXME: Temporary fix (docker/build-push-action#154, docker/build-push-action#162)
|
||||
createArgs.push('--driver-opt', 'image=moby/buildkit:v0.8-beta');
|
||||
}
|
||||
if (inputs.buildkitdFlags) {
|
||||
createArgs.push('--buildkitd-flags', inputs.buildkitdFlags);
|
||||
}
|
||||
|
@ -36,17 +36,9 @@ async function run(): Promise<void> {
|
||||
core.startGroup(`🔨 Creating a new builder instance`);
|
||||
let createArgs: Array<string> = ['buildx', 'create', '--name', builderName, '--driver', inputs.driver];
|
||||
if (semver.satisfies(buildxVersion, '>=0.3.0')) {
|
||||
let hasImageDriverOpt: boolean = false;
|
||||
await context.asyncForEach(inputs.driverOpts, async driverOpt => {
|
||||
if (driverOpt.startsWith('image=')) {
|
||||
hasImageDriverOpt = true;
|
||||
}
|
||||
createArgs.push('--driver-opt', driverOpt);
|
||||
});
|
||||
if (!hasImageDriverOpt) {
|
||||
//FIXME: Temporary fix (docker/build-push-action#154, docker/build-push-action#162)
|
||||
createArgs.push('--driver-opt', 'image=moby/buildkit:v0.8-beta');
|
||||
}
|
||||
if (inputs.buildkitdFlags) {
|
||||
createArgs.push('--buildkitd-flags', inputs.buildkitdFlags);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user