mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	build: handle push/load shorthands for multi exporters
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
		@@ -72,11 +72,9 @@ func runBake(ctx context.Context, dockerCli command.Cli, targets []string, in ba
 | 
			
		||||
 | 
			
		||||
	overrides := in.overrides
 | 
			
		||||
	if in.exportPush {
 | 
			
		||||
		if in.exportLoad {
 | 
			
		||||
			return errors.Errorf("push and load may not be set together at the moment")
 | 
			
		||||
		}
 | 
			
		||||
		overrides = append(overrides, "*.push=true")
 | 
			
		||||
	} else if in.exportLoad {
 | 
			
		||||
		overrides = append(overrides, "*.output=type=registry")
 | 
			
		||||
	}
 | 
			
		||||
	if in.exportLoad {
 | 
			
		||||
		overrides = append(overrides, "*.output=type=docker")
 | 
			
		||||
	}
 | 
			
		||||
	if cFlags.noCache != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user