Skip to content

Commit

Permalink
adding back in brackets in shell scripts for circle
Browse files Browse the repository at this point in the history
  • Loading branch information
Megan Martinson committed Jun 9, 2017
1 parent 87dfe6d commit 88931ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
# $DOCKER_NAMESPACE_DEV - the image name for development deployments [Default]: reactioncommerce/prequel


if [ "$CIRCLE_BRANCH" != "master" && "$CIRCLE_BRANCH" != "development" ]; then
if [[ "$CIRCLE_BRANCH" != "master" && "$CIRCLE_BRANCH" != "development" ]]; then
echo "Not running a deployment branch."
exit 0
fi


## Development
if [ "$CIRCLE_BRANCH" == "development" ]; then
if [[ "$CIRCLE_BRANCH" == "development" ]]; then
set -e

DOCKER_NAMESPACE=${DOCKER_NAMESPACE:-"reactioncommerce/reaction"}
Expand All @@ -39,10 +39,10 @@ fi


# Master branch deployment (only runs when a version git tag exists - syntax: "v1.2.3")
if [ "$CIRCLE_BRANCH" == "master" ]; then
if [[ "$CIRCLE_BRANCH" == "master" ]]; then
VERSION=$(git describe --tags | grep "/ee-v[0-9]+(\.[0-9]+)*/")

if [ "$VERSION" ]; then
if [[ "$VERSION" ]]; then
set -e

DOCKER_NAMESPACE=${DOCKER_NAMESPACE:-"reactioncommerce/reaction"}
Expand Down

0 comments on commit 88931ec

Please sign in to comment.