Skip to content

Commit

Permalink
CI: test Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Aug 20, 2024
1 parent 4cd5ca6 commit 7fc4071
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ jobs:
- run: make coverage
- codecov/upload

build-docker:
docker:
- image: circleci/buildpack-deps:stretch
environment:
DOCKER_TAG: ocrd/tesserocr
steps:
- checkout
- run: git submodule sync && git submodule update --init
- setup_remote_docker: # https://circleci.com/docs/2.0/building-docker-images/
docker_layer_caching: true
- run: make docker DOCKER_TAG=$DOCKER_TAG
- run: docker run --rm $DOCKER_TAG ocrd-tesserocr-segment -h

deploy-docker:
docker:
- image: circleci/buildpack-deps:stretch
Expand All @@ -40,6 +53,7 @@ jobs:
- setup_remote_docker: # https://circleci.com/docs/2.0/building-docker-images/
docker_layer_caching: true
- run: make docker DOCKER_TAG=$DOCKER_TAG
- run: docker run --rm $DOCKER_TAG ocrd-tesserocr-segment -h
- run:
name: Login to Docker Hub
command: echo "$DOCKERHUB_PASS" | docker login --username "$DOCKERHUB_USER" --password-stdin
Expand All @@ -62,6 +76,8 @@ workflows:
matrix:
parameters:
python-version: ['3.7', '3.8', '3.9', '3.10']
- build-docker

deploy:
when:
condition:
Expand Down

0 comments on commit 7fc4071

Please sign in to comment.