mirror of
				https://gitea.com/docker/build-push-action.git
				synced 2025-10-31 00:58:18 +07:00 
			
		
		
		
	Display available platforms
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									46bf3297bf
								
							
						
					
					
						commit
						ee3946b77e
					
				
							
								
								
									
										4
									
								
								setup-buildx/dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								setup-buildx/dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -2519,7 +2519,9 @@ function run() { | |||||||
|                 yield exec.exec('docker', ['buildx', 'install'], false); |                 yield exec.exec('docker', ['buildx', 'install'], false); | ||||||
|             } |             } | ||||||
|             core.info('🛒 Extracting available platforms...'); |             core.info('🛒 Extracting available platforms...'); | ||||||
|             core.setOutput('platforms', yield buildx.platforms()); |             const platforms = yield buildx.platforms(); | ||||||
|  |             core.info(`${platforms}`); | ||||||
|  |             core.setOutput('platforms', platforms); | ||||||
|         } |         } | ||||||
|         catch (error) { |         catch (error) { | ||||||
|             core.setFailed(error.message); |             core.setFailed(error.message); | ||||||
|  | |||||||
| @ -51,7 +51,9 @@ async function run(): Promise<void> { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     core.info('🛒 Extracting available platforms...'); |     core.info('🛒 Extracting available platforms...'); | ||||||
|     core.setOutput('platforms', await buildx.platforms()); |     const platforms = await buildx.platforms(); | ||||||
|  |     core.info(`${platforms}`); | ||||||
|  |     core.setOutput('platforms', platforms); | ||||||
|   } catch (error) { |   } catch (error) { | ||||||
|     core.setFailed(error.message); |     core.setFailed(error.message); | ||||||
|   } |   } | ||||||
|  | |||||||
							
								
								
									
										1
									
								
								setup-qemu/dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								setup-qemu/dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -1021,6 +1021,7 @@ function run() { | |||||||
|                     throw new Error(res.stderr); |                     throw new Error(res.stderr); | ||||||
|                 } |                 } | ||||||
|                 const platforms = JSON.parse(res.stdout.trim()); |                 const platforms = JSON.parse(res.stdout.trim()); | ||||||
|  |                 core.info(`${platforms.supported.join(',')}`); | ||||||
|                 core.setOutput('platforms', platforms.supported.join(',')); |                 core.setOutput('platforms', platforms.supported.join(',')); | ||||||
|             }); |             }); | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -26,6 +26,7 @@ async function run(): Promise<void> { | |||||||
|         throw new Error(res.stderr); |         throw new Error(res.stderr); | ||||||
|       } |       } | ||||||
|       const platforms: Platforms = JSON.parse(res.stdout.trim()); |       const platforms: Platforms = JSON.parse(res.stdout.trim()); | ||||||
|  |       core.info(`${platforms.supported.join(',')}`); | ||||||
|       core.setOutput('platforms', platforms.supported.join(',')); |       core.setOutput('platforms', platforms.supported.join(',')); | ||||||
|     }); |     }); | ||||||
|   } catch (error) { |   } catch (error) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user