Skip to content

Commit

Permalink
add deploy to docker hub in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiptog81 committed Nov 1, 2020
1 parent 2f2f613 commit a239c88
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
test:
docker:
- image: circleci/python:3.8
environment:
IMAGE_NAME: activeloopai/hub
steps:
- checkout
- run:
Expand Down Expand Up @@ -89,6 +91,18 @@ jobs:
name: "Upload dist to PyPi"
command: |
twine upload dist/*
- run:
name: "Build Docker Hub Image"
command: |
docker build -t $IMAGE_NAME:latest .
- run:
name: "Deploy to Docker Hub"
command: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
IMAGE_TAG=${CIRCLE_TAG}
docker tag $IMAGE_NAME:latest $IMAGE_NAME:$IMAGE_TAG
docker push $IMAGE_NAME:latest
docker push $IMAGE_NAME:$IMAGE_TAG
- slack/status:
fail_only: true
webhook: $SLACK_WEBHOOK
Expand Down

0 comments on commit a239c88

Please sign in to comment.