Skip to content

Commit

Permalink
Moving deploy branches configs to ENV vars
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrei committed Jan 7, 2018
1 parent 63fc44c commit 09c463d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ jobs:

- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "development" ]; then
if [ "${CIRCLE_BRANCH}" == "${STAGING_DEPLOY_BRANCH}" ]; then
echo "Deploying to STAGING"
./deploy/deploy.sh staging
elif [ "${CIRCLE_BRANCH}" == "master" ]; then
elif [ "${CIRCLE_BRANCH}" == "${PRODUCTION_DEPLOY_BRANCH}" ]; then
echo "Deploying to PRODUCTION"
./deploy/deploy.sh production
fi

0 comments on commit 09c463d

Please sign in to comment.