summaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
diff options
context:
space:
mode:
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml22
1 files changed, 12 insertions, 10 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 19de843c3..0ea606b21 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -73,16 +73,18 @@ jobs:
command: apk update && apk add git openssh-client
- checkout
- run: docker build -t bmo .
- - deploy: |
- if [[ -n "$DOCKERHUB_REPO" && -n "$DOCKER_USER" && -n "$DOCKER_PASS" ]]; then
- TAG="${CIRCLE_TAG:-$CIRCLE_BRANCH}"
- if [[ $TAG == "master" ]]; then
- TAG=latest
- fi
- docker tag bmo $DOCKERHUB_REPO:$TAG
- docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
- docker push $DOCKERHUB_REPO:$TAG
- fi
+ - deploy:
+ command: |
+ docker build -t bmo .
+ if [[ -n "$DOCKERHUB_REPO" && -n "$DOCKER_USER" && -n "$DOCKER_PASS" ]]; then
+ TAG="${CIRCLE_TAG:-$CIRCLE_BRANCH}"
+ if [[ $TAG == "master" ]]; then
+ TAG=latest
+ fi
+ docker tag bmo $DOCKERHUB_REPO:$TAG
+ docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
+ docker push $DOCKERHUB_REPO:$TAG
+ fi
test_sanity:
parallelism: 4