mirror of
				https://github.com/docker/setup-buildx-action.git
				synced 2025-10-31 01:20:09 +08:00 
			
		
		
		
	skip builder creation if one already exists with the same name
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									548b297749
								
							
						
					
					
						commit
						6c5e29d848
					
				| @ -124,6 +124,9 @@ actionsToolkit.run( | ||||
| 
 | ||||
|     if (inputs.driver !== 'docker') { | ||||
|       await core.group(`Creating a new builder instance`, async () => { | ||||
|         if (await toolkit.builder.exists(inputs.name)) { | ||||
|           core.info(`Builder ${inputs.name} already exists, skipping creation`); | ||||
|         } else { | ||||
|           const certsDriverOpts = Buildx.resolveCertsDriverOpts(inputs.driver, inputs.endpoint, { | ||||
|             cacert: process.env[`${context.builderNodeEnvPrefix}_0_AUTH_TLS_CACERT`], | ||||
|             cert: process.env[`${context.builderNodeEnvPrefix}_0_AUTH_TLS_CERT`], | ||||
| @ -140,6 +143,7 @@ actionsToolkit.run( | ||||
|               throw new Error(res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'); | ||||
|             } | ||||
|           }); | ||||
|         } | ||||
|       }); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 CrazyMax
						CrazyMax