mirror of
				https://github.com/docker/build-push-action.git
				synced 2025-10-31 14:30:54 +00:00 
			
		
		
		
	Add network input
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								8891861577
							
						
					
				
			
			
				commit
				
					
						5a4a26c0fc
					
				
			
		
					 6 changed files with 39 additions and 0 deletions
				
			
		|  | @ -22,6 +22,7 @@ export interface Inputs { | |||
|   file: string; | ||||
|   labels: string[]; | ||||
|   load: boolean; | ||||
|   network: string; | ||||
|   noCache: boolean; | ||||
|   outputs: string[]; | ||||
|   platforms: string[]; | ||||
|  | @ -66,6 +67,7 @@ export async function getInputs(defaultContext: string): Promise<Inputs> { | |||
|     file: core.getInput('file'), | ||||
|     labels: await getInputList('labels', true), | ||||
|     load: /true/i.test(core.getInput('load')), | ||||
|     network: core.getInput('network'), | ||||
|     noCache: /true/i.test(core.getInput('no-cache')), | ||||
|     outputs: await getInputList('outputs', true), | ||||
|     platforms: await getInputList('platforms'), | ||||
|  | @ -163,6 +165,9 @@ async function getCommonArgs(inputs: Inputs): Promise<Array<string>> { | |||
|   if (inputs.load) { | ||||
|     args.push('--load'); | ||||
|   } | ||||
|   if (inputs.network) { | ||||
|     args.push('--network', inputs.network); | ||||
|   } | ||||
|   if (inputs.push) { | ||||
|     args.push('--push'); | ||||
|   } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue