From 9e501c106754ac727240d4c95aace28984ea54fb Mon Sep 17 00:00:00 2001 From: dandds Date: Tue, 18 Feb 2020 11:55:19 -0500 Subject: [PATCH] Update Azure CLI login to container registry. The Azure CLI now returns an exit code of "1" if there are any warnings when logging into a container registry. Since our longterm goal is to move away from CircleCI, I chose to fix this in-place rather than integrate a credentials store or pass more config values to a `docker login` command. Instead, this just grep the output from the Azure CLI command to ensure it succeeded. --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1bb49bb3..c28b28a7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -103,7 +103,7 @@ commands: --password $AZURE_SP_PASSWORD \ --username $AZURE_SP echo "Successfully logged in to Azure CLI." - az acr login --name $AZURE_REGISTRY + az acr login --name $AZURE_REGISTRY | grep "Succeeded" - run: name: Install kubectl command: |