Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
woops, need to update circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed Jul 14, 2017
1 parent e237af8 commit 76f8d37
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,20 @@ jobs:
- run:
name: Install Docker client
command: |
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
if [ $CIRCLE_BRANCH = 'master' ]; then
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
fi
- run:
name: Publish to Docker Hub
command: |
TAG=0.1.$CIRCLE_BUILD_NUM
docker build -t datatogether/task-mgmt:latest -t datatogether/task-mgmt:$TAG .
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push datatogether/task-mgmt:$TAG
docker push datatogether/task-mgmt:latest
if [ $CIRCLE_BRANCH = 'master' ]; then
TAG=0.1.$CIRCLE_BUILD_NUM
docker build -t datatogether/task-mgmt:latest -t datatogether/task-mgmt:$TAG .
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push datatogether/task-mgmt:$TAG
docker push datatogether/task-mgmt:latest
fi

0 comments on commit 76f8d37

Please sign in to comment.