@ -497,18 +497,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
 
		
	
		
			
				} ;  
		
	
		
			
				Object . defineProperty ( exports ,  "__esModule" ,  {  value :  true  } ) ;  
		
	
		
			
				exports . run  =  void  0 ;  
		
	
		
			
				const  os  =  _ _importStar ( _ _webpack _require _ _ ( 87 ) ) ;  
		
	
		
			
				const  core  =  _ _importStar ( _ _webpack _require _ _ ( 186 ) ) ;  
		
	
		
			
				const  context _1 =  _ _webpack _require _ _ ( 842 ) ;  
		
	
		
			
				const  context  =  _ _importStar ( _ _webpack _require _ _ ( 842 ) ) ;  
		
	
		
			
				const  docker  =  _ _importStar ( _ _webpack _require _ _ ( 758 ) ) ;  
		
	
		
			
				const  stateHelper  =  _ _importStar ( _ _webpack _require _ _ ( 647 ) ) ;  
		
	
		
			
				function  run ( )  {  
		
	
		
			
				    return  _ _awaiter ( this ,  void  0 ,  void  0 ,  function *  ( )  { 
 
		
	
		
			
				        try  { 
 
		
	
		
			
				            if  ( os . platform ( )  !==  'linux' )  { 
 
		
	
		
			
				                throw  new  Error ( 'Only supported on linux platform' ) ; 
 
		
	
		
			
				            } 
 
		
	
		
			
				            const  {  registry ,  username ,  password ,  logout  }  =  context _1 . getInputs ( ) ; 
 
		
	
		
			
				            const  {  registry ,  username ,  password ,  logout  }  =  context . getInputs ( ) ; 
 
		
	
		
			
				            stateHelper . setRegistry ( registry ) ; 
 
		
	
		
			
				            stateHelper . setLogout ( logout ) ; 
 
		
	
		
			
				            yield  docker . login ( registry ,  username ,  password ) ; 
 
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -3069,16 +3065,16 @@ function loginStandard(registry, username, password) {
 
		
	
		
			
				        loginArgs . push ( '--username' ,  username ) ; 
 
		
	
		
			
				        loginArgs . push ( registry ) ; 
 
		
	
		
			
				        if  ( registry )  { 
 
		
	
		
			
				            core . info ( ` 🔑  Logging into ${ registry } ... ` ) ; 
 
		
	
		
			
				            core . info ( ` ${ registry } ... ` ) ; 
 
		
	
		
			
				        } 
 
		
	
		
			
				        else  { 
 
		
	
		
			
				            core . info ( ` 🔑  Logging into Docker Hub...` ) ; 
 
		
	
		
			
				            core . info ( ` ` ) ; 
 
		
	
		
			
				        } 
 
		
	
		
			
				        yield  execm . exec ( 'docker' ,  loginArgs ,  true ,  password ) . then ( res  =>  { 
 
		
	
		
			
				            if  ( res . stderr  !=  ''  &&  ! res . success )  { 
 
		
	
		
			
				                throw  new  Error ( res . stderr ) ; 
 
		
	
		
			
				            } 
 
		
	
		
			
				            core . info ( '🎉 Login Succeeded!' ) ; 
 
		
	
		
			
				            core . info ( ` Login Succeeded! ` ) ; 
 
		
	
		
			
				        } ) ; 
 
		
	
		
			
				    } ) ; 
 
		
	
		
			
				}  
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -3090,26 +3086,26 @@ function loginECR(registry, username, password) {
 
		
	
		
			
				        const  region  =  yield  aws . getRegion ( registry ) ; 
 
		
	
		
			
				        const  accountIDs  =  yield  aws . getAccountIDs ( registry ) ; 
 
		
	
		
			
				        if  ( yield  aws . isPubECR ( registry ) )  { 
 
		
	
		
			
				            core . info ( ` 💡  AWS Public ECR detected with ${ region }  region ` ) ; 
 
		
	
		
			
				            core . info ( ` ${ region }  region ` ) ; 
 
		
	
		
			
				        } 
 
		
	
		
			
				        else  { 
 
		
	
		
			
				            core . info ( ` 💡  AWS ECR detected with ${ region }  region ` ) ; 
 
		
	
		
			
				            core . info ( ` ${ region }  region ` ) ; 
 
		
	
		
			
				        } 
 
		
	
		
			
				        process . env . AWS _ACCESS _KEY _ID  =  username  ||  process . env . AWS _ACCESS _KEY _ID ; 
 
		
	
		
			
				        process . env . AWS _SECRET _ACCESS _KEY  =  password  ||  process . env . AWS _SECRET _ACCESS _KEY ; 
 
		
	
		
			
				        core . info ( ` ⬇️  Retrieving docker login command through AWS CLI ${ cliVersion }  ( ${ cliPath } )... ` ) ; 
 
		
	
		
			
				        core . info ( ` ${ cliVersion }  ( ${ cliPath } )... ` ) ; 
 
		
	
		
			
				        const  loginCmds  =  yield  aws . getDockerLoginCmds ( cliVersion ,  registry ,  region ,  accountIDs ) ; 
 
		
	
		
			
				        core . info ( ` 🔑  Logging into ${ registry } ... ` ) ; 
 
		
	
		
			
				        core . info ( ` ${ registry } ... ` ) ; 
 
		
	
		
			
				        loginCmds . forEach ( ( loginCmd ,  index )  =>  { 
 
		
	
		
			
				            execm . exec ( loginCmd ,  [ ] ,  true ) . then ( res  =>  { 
 
		
	
		
			
				                if  ( res . stderr  !=  ''  &&  ! res . success )  { 
 
		
	
		
			
				                    throw  new  Error ( res . stderr ) ; 
 
		
	
		
			
				                } 
 
		
	
		
			
				                if  ( loginCmds . length  >  1 )  { 
 
		
	
		
			
				                    core . info ( ` 🎉  Login Succeeded! (${ index } / ${ loginCmds . length } ) ` ) ; 
 
		
	
		
			
				                    core . info ( ` ${ index } / ${ loginCmds . length } ) ` ) ; 
 
		
	
		
			
				                } 
 
		
	
		
			
				                else  { 
 
		
	
		
			
				                    core . info ( ' 🎉  Login Succeeded!') ; 
 
		
	
		
			
				                    core . info ( ' Login Succeeded!') ; 
 
		
	
		
			
				                } 
 
		
	
		
			
				            } ) ; 
 
		
	
		
			
				        } ) ;