Update k8s script
This commit is contained in:
		
							parent
							
								
									f724c6b91b
								
							
						
					
					
						commit
						867afa3df4
					
				@ -12,6 +12,8 @@ if(-not [string]::IsNullOrEmpty($execPath)) {
 | 
				
			|||||||
    $kubectl_exec = $execPath + '/' + 'kubectl';
 | 
					    $kubectl_exec = $execPath + '/' + 'kubectl';
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Not using ACR when deploying through CI VSTS
 | 
				
			||||||
 | 
					if(-not $deployCI) {
 | 
				
			||||||
        $requiredCommands = ("docker", "docker-compose", "kubectl")
 | 
					        $requiredCommands = ("docker", "docker-compose", "kubectl")
 | 
				
			||||||
        foreach ($command in $requiredCommands) {
 | 
					        foreach ($command in $requiredCommands) {
 | 
				
			||||||
        if ((Get-Command $command -ErrorAction SilentlyContinue) -eq $null) {
 | 
					        if ((Get-Command $command -ErrorAction SilentlyContinue) -eq $null) {
 | 
				
			||||||
@ -20,8 +22,6 @@ foreach ($command in $requiredCommands) {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Not using ACR when deploying through CI VSTS
 | 
					 | 
				
			||||||
if(-not $deployCI) {
 | 
					 | 
				
			||||||
    Write-Host "Logging in to $registry" -ForegroundColor Yellow
 | 
					    Write-Host "Logging in to $registry" -ForegroundColor Yellow
 | 
				
			||||||
    docker login -u $dockerUser -p $dockerPassword $registry
 | 
					    docker login -u $dockerUser -p $dockerPassword $registry
 | 
				
			||||||
    if (-not $LastExitCode -eq 0) {
 | 
					    if (-not $LastExitCode -eq 0) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user