Update k8s script

This commit is contained in:
Ramón Tomás 2017-05-05 16:17:35 +02:00
parent f724c6b91b
commit 867afa3df4

View File

@ -12,6 +12,8 @@ if(-not [string]::IsNullOrEmpty($execPath)) {
$kubectl_exec = $execPath + '/' + 'kubectl';
}
# Not using ACR when deploying through CI VSTS
if(-not $deployCI) {
$requiredCommands = ("docker", "docker-compose", "kubectl")
foreach ($command in $requiredCommands) {
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
docker login -u $dockerUser -p $dockerPassword $registry
if (-not $LastExitCode -eq 0) {