mirror of
				https://github.com/docker/login-action.git
				synced 2025-11-01 02:30:10 +08:00 
			
		
		
		
	update dist
This commit is contained in:
		
							parent
							
								
									34677259a9
								
							
						
					
					
						commit
						d61c413af8
					
				| @ -11,7 +11,7 @@ inputs: | |||||||
|     description: 'Server address of Docker registry. If not set then will default to Docker Hub' |     description: 'Server address of Docker registry. If not set then will default to Docker Hub' | ||||||
|     required: false |     required: false | ||||||
|   isECR: |   isECR: | ||||||
|     description: 'Specifies whethre the given registry is ECR. Uses regex by default to detect automatically' |     description: 'Specifies whether the given registry is ECR, either `true` or `false`. Uses regex by default to detect automatically' | ||||||
|     required: false |     required: false | ||||||
|   username: |   username: | ||||||
|     description: 'Username used to log against the Docker registry' |     description: 'Username used to log against the Docker registry' | ||||||
|  | |||||||
							
								
								
									
										939
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										939
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -2,6 +2,7 @@ import * as core from '@actions/core'; | |||||||
| 
 | 
 | ||||||
| export interface Inputs { | export interface Inputs { | ||||||
|   registry: string; |   registry: string; | ||||||
|  |   isECR: string; | ||||||
|   username: string; |   username: string; | ||||||
|   password: string; |   password: string; | ||||||
|   logout: string; |   logout: string; | ||||||
| @ -10,6 +11,7 @@ export interface Inputs { | |||||||
| export function getInputs(): Inputs { | export function getInputs(): Inputs { | ||||||
|   return { |   return { | ||||||
|     registry: core.getInput('registry'), |     registry: core.getInput('registry'), | ||||||
|  |     isECR: core.getInput('isECR'), | ||||||
|     username: core.getInput('username'), |     username: core.getInput('username'), | ||||||
|     password: core.getInput('password'), |     password: core.getInput('password'), | ||||||
|     logout: core.getInput('logout') |     logout: core.getInput('logout') | ||||||
|  | |||||||
| @ -2,8 +2,8 @@ import * as core from '@actions/core'; | |||||||
| import * as aws from './aws'; | import * as aws from './aws'; | ||||||
| import * as execm from './exec'; | import * as execm from './exec'; | ||||||
| 
 | 
 | ||||||
| export async function login(registry: string, username: string, password: string, isECR?: boolean): Promise<void> { | export async function login(registry: string, username: string, password: string, isECR: string): Promise<void> { | ||||||
|   if (isECR == true || (isECR == undefined && await aws.isECR(registry))) { |   if (isECR == 'true' || (!isECR && await aws.isECR(registry))) { | ||||||
|     await loginECR(registry, username, password); |     await loginECR(registry, username, password); | ||||||
|   } else { |   } else { | ||||||
|     await loginStandard(registry, username, password); |     await loginStandard(registry, username, password); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Beal
						Daniel Beal