From 867afa3df4fcba9b8a6fb97d144ba696dbd4c7a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Tom=C3=A1s?= Date: Fri, 5 May 2017 16:17:35 +0200 Subject: [PATCH] Update k8s script --- k8s/deploy.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/k8s/deploy.ps1 b/k8s/deploy.ps1 index 2485d48c5..f0d24e1b1 100644 --- a/k8s/deploy.ps1 +++ b/k8s/deploy.ps1 @@ -12,16 +12,16 @@ if(-not [string]::IsNullOrEmpty($execPath)) { $kubectl_exec = $execPath + '/' + 'kubectl'; } -$requiredCommands = ("docker", "docker-compose", "kubectl") -foreach ($command in $requiredCommands) { - if ((Get-Command $command -ErrorAction SilentlyContinue) -eq $null) { - Write-Host "$command must be on path" -ForegroundColor Red - exit - } -} - # 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) { + Write-Host "$command must be on path" -ForegroundColor Red + exit + } + } + Write-Host "Logging in to $registry" -ForegroundColor Yellow docker login -u $dockerUser -p $dockerPassword $registry if (-not $LastExitCode -eq 0) {