From f7b1bb0445313fe4266428d42238b86ad6016cf6 Mon Sep 17 00:00:00 2001 From: Rodrigo Pavano Date: Sun, 7 Jan 2018 14:07:01 -0300 Subject: [PATCH] Moving deploy branches configs to ENV vars --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2798361..e54407d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,9 +31,9 @@ jobs: - deploy: command: | - if [ "${CIRCLE_BRANCH}" == "development" ]; then + if [ "${CIRCLE_BRANCH}" == "${STAGING_DEPLOY_BRANCH}" ]; then ./deploy/deploy.sh staging - elif [ "${CIRCLE_BRANCH}" == "master" ]; then + elif [ "${CIRCLE_BRANCH}" == "${PRODUCTION_DEPLOY_BRANCH}" ]; then ./deploy/deploy.sh production fi