mirror of
				https://github.com/docker/login-action.git
				synced 2025-10-31 10:10:09 +08:00 
			
		
		
		
	Update main.ts
This commit is contained in:
		
							parent
							
								
									28ede9d50a
								
							
						
					
					
						commit
						34677259a9
					
				| @ -10,10 +10,10 @@ export async function run(): Promise<void> { | |||||||
|       throw new Error('Only supported on linux platform'); |       throw new Error('Only supported on linux platform'); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     const {registry, username, password, logout} = getInputs(); |     const {registry, isECR, username, password, logout} = getInputs(); | ||||||
|     stateHelper.setRegistry(registry); |     stateHelper.setRegistry(registry); | ||||||
|     stateHelper.setLogout(logout); |     stateHelper.setLogout(logout); | ||||||
|     await docker.login(registry, username, password); |     await docker.login(registry, username, password, isECR); | ||||||
|   } catch (error) { |   } catch (error) { | ||||||
|     core.setFailed(error.message); |     core.setFailed(error.message); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Beal
						Daniel Beal