mirror of
				https://github.com/docker/build-push-action.git
				synced 2025-11-04 08:20:55 +00:00 
			
		
		
		
	Merge pull request #54 from useblacksmith/fix-misplaced
src: only resolve buildref on success
This commit is contained in:
		
				commit
				
					
						6622b6936e
					
				
			
		
					 3 changed files with 10 additions and 7 deletions
				
			
		
							
								
								
									
										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
											
										
									
								
							
							
								
								
									
										13
									
								
								src/main.ts
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								src/main.ts
									
										
									
									
									
								
							| 
						 | 
					@ -738,10 +738,13 @@ actionsToolkit.run(
 | 
				
			||||||
    await core.group('Cleaning up Blacksmith builder', async () => {
 | 
					    await core.group('Cleaning up Blacksmith builder', async () => {
 | 
				
			||||||
      if (builderInfo.addr) {
 | 
					      if (builderInfo.addr) {
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
          const buildxHistory = new BuildxHistory();
 | 
					          let exportRes;
 | 
				
			||||||
          const exportRes = await buildxHistory.export({
 | 
					          if (!buildError) {
 | 
				
			||||||
            refs: ref ? [ref] : []
 | 
					            const buildxHistory = new BuildxHistory();
 | 
				
			||||||
          });
 | 
					            exportRes = await buildxHistory.export({
 | 
				
			||||||
 | 
					              refs: ref ? [ref] : []
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
          await shutdownBuildkitd();
 | 
					          await shutdownBuildkitd();
 | 
				
			||||||
          core.info('Shutdown buildkitd');
 | 
					          core.info('Shutdown buildkitd');
 | 
				
			||||||
          for (let attempt = 1; attempt <= 3; attempt++) {
 | 
					          for (let attempt = 1; attempt <= 3; attempt++) {
 | 
				
			||||||
| 
						 | 
					@ -862,4 +865,4 @@ function buildSummaryEnabled(): boolean {
 | 
				
			||||||
    return Util.parseBool(process.env.DOCKER_BUILD_SUMMARY);
 | 
					    return Util.parseBool(process.env.DOCKER_BUILD_SUMMARY);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  return true;
 | 
					  return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue