mirror of
				https://github.com/docker/login-action.git
				synced 2025-10-31 18:20:10 +08:00 
			
		
		
		
	Merge 19329d1409 into f6d32ad023
				
					
				
			This commit is contained in:
		
						commit
						ba83e5f124
					
				
							
								
								
									
										9
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -282,8 +282,13 @@ async function loginECR(registry, username, password) { | ||||
|             input: Buffer.from(regData.password) | ||||
|         }) | ||||
|             .then(res => { | ||||
|             if (res.stderr.length > 0 && res.exitCode != 0) { | ||||
|                 throw new Error(res.stderr.trim()); | ||||
|             if (res.stderr.length > 0) { | ||||
|                 if (res.exitCode != 0) { | ||||
|                     throw new Error(res.stderr.trim()); | ||||
|                 } | ||||
|                 else { | ||||
|                     core.warning(res.stderr); | ||||
|                 } | ||||
|             } | ||||
|             core.info('Login Succeeded!'); | ||||
|         }); | ||||
|  | ||||
| @ -43,8 +43,12 @@ export async function loginStandard(registry: string, username: string, password | ||||
|       input: Buffer.from(password) | ||||
|     }) | ||||
|     .then(res => { | ||||
|       if (res.stderr.length > 0 && res.exitCode != 0) { | ||||
|         throw new Error(res.stderr.trim()); | ||||
|       if (res.stderr.length > 0) { | ||||
|         if (res.exitCode != 0) { | ||||
|           throw new Error(res.stderr.trim()); | ||||
|         } else { | ||||
|           core.warning(res.stderr); | ||||
|         } | ||||
|       } | ||||
|       core.info(`Login Succeeded!`); | ||||
|     }); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 eine
						eine