From d28d1756f80785a43ed3838d7a6a155149f5164c Mon Sep 17 00:00:00 2001
From: Matthew Fisher <matt.fisher@microsoft.com>
Date: Thu, 25 Jan 2018 23:37:10 -0800
Subject: [PATCH] exit zero on non-master branch

While we still don't want to upload to GCS/GCR, we also don't want the CI run to fail because we are just skipping the step. This is most usually seen in the `release-X.Y` branches cut every minor release.
---
 .circleci/deploy.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.circleci/deploy.sh b/.circleci/deploy.sh
index 84bcfa33b..6a3b3d0a6 100755
--- a/.circleci/deploy.sh
+++ b/.circleci/deploy.sh
@@ -29,7 +29,8 @@ if [[ -n "${CIRCLE_TAG:-}" ]]; then
 elif [[ "${CIRCLE_BRANCH:-}" == "master" ]]; then
   VERSION="canary"
 else
-  exit 1
+  echo "Skipping deploy step; this is neither master or a tag"
+  exit
 fi
 
 echo "Install docker client"
-- 
GitLab