mirror of
				https://github.com/docker/setup-buildx-action.git
				synced 2025-11-01 01:40:11 +08:00 
			
		
		
		
	skip setting buildkitd flags and config for remote driver
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									bea6a01aa4
								
							
						
					
					
						commit
						798ed00eea
					
				
							
								
								
									
										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
											
										
									
								
							
							
								
								
									
										12
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/main.ts
									
									
									
									
									
								
							| @ -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,10 +73,12 @@ async function run(): Promise<void> { | |||||||
|       if (inputs.endpoint) { |       if (inputs.endpoint) { | ||||||
|         createArgs.push(inputs.endpoint); |         createArgs.push(inputs.endpoint); | ||||||
|       } |       } | ||||||
|       if (inputs.config) { |       if (inputs.driver != 'remote') { | ||||||
|         createArgs.push('--config', await buildx.getConfigFile(inputs.config)); |         if (inputs.config) { | ||||||
|       } else if (inputs.configInline) { |           createArgs.push('--config', await buildx.getConfigFile(inputs.config)); | ||||||
|         createArgs.push('--config', await buildx.getConfigInline(inputs.configInline)); |         } else if (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); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 CrazyMax
						CrazyMax