From ce9540d755ad70c311cbea423e07b2e1081f22ec Mon Sep 17 00:00:00 2001 From: dandds Date: Tue, 18 Feb 2020 15:51:48 -0500 Subject: [PATCH] Set shell for failing docker login command. On my last PR to fix this, I didn't notice that CircleCI was setting the shell to execute with `/bin/sh -eo pipefail`, which means that the commands will fail if any part of the command exits with 1, regardless of whether the result is being piped anywhere else. This updates the shell that that section of the config uses. https://circleci.com/docs/2.0/configuration-reference/#default-shell-options --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c28b28a7..c1d2d810 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -96,6 +96,7 @@ commands: apk del --purge build - run: name: Login to Azure CLI + shell: /bin/sh -o pipefail command: | az login \ --service-principal \