From 8dc967094d581bdac7e7ce4bfdec2bb17d287e96 Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 2 May 2019 22:11:32 +0200 Subject: [PATCH] CircleCI: define Stage var in if --- .circleci/config.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7ae42bc0..9df3df2a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,8 +20,11 @@ jobs: - run: name: Setup env command: | - if [ $CIRCLE_BRANCH = "master" ]; then STAGE="Prod" else STAGE="Dev"; fi - echo "export STAGE=$STAGE" >> $BASH_ENV + if [ $CIRCLE_BRANCH = "master" ]; then + echo "export STAGE=Prod" >> $BASH_ENV + else + echo "export STAGE=Dev >> $BASH_ENV + fi echo "export BUILD_TYPE_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${BUILD_TYPE:0:1}${BUILD_TYPE:1})\"" >> $BASH_ENV echo "export STAGE_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${STAGE:0:1}${STAGE:1})\"" >> $BASH_ENV echo "export LIBS_LOWER=\"$(tr '[:upper:]' '[:lower:]' <<< ${LIBS:0:1}${LIBS:1})\"" >> $BASH_ENV