Skip to content

Commit

Permalink
add dockerhub deployment to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jun 29, 2020
1 parent 861571d commit 299766f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,37 @@ jobs:
resources/enable_profiling.py &&
pytest --tb=short &&
resources/profile_queries.py
deploy:
docker:
- image: circleci/buildpack-deps:stretch
environment:
IMAGE_NAME: icecube/file-catalog
steps:
- checkout
- setup_remote_docker
- run: |
echo 'export TAG="${CIRCLE_TAG:=latest}"' >> $BASH_ENV
- run: |
docker build -t $IMAGE_NAME:$TAG .
- run: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USER" --password-stdin
docker push $IMAGE_NAME:$TAG
workflows:
version: 2
build_and_test:
jobs:
- test
- deploy:
context: docker
filters:
branches:
only: master
release:
jobs:
- deploy:
context: docker
filters:
branches:
ignore: /.*/
tags:
only: /^v?\d+\.\d+\.\d+$/

0 comments on commit 299766f

Please # to comment.