Skip to content

Commit

Permalink
add CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Feb 14, 2024
1 parent 11adddf commit c67a11a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2.1
jobs:

build-python3:
docker:
- image: ocrd/core
environment:
PIP: pip3
PYTHON: python3
steps:
- checkout
- run: make install

deploy-docker:
docker:
- image: circleci/buildpack-deps:stretch
steps:
- checkout
- setup_remote_docker: # https://circleci.com/docs/2.0/building-docker-images/
docker_layer_caching: true
- run: make docker
- run:
name: Login to Docker Hub
command: echo "$DOCKERHUB_PASS" | docker login --username "$DOCKERHUB_USER" --password-stdin
- run: docker push ocrd/segment

workflows:
version: 2
build-and-test:
jobs:
- build-python3
deploy:
jobs:
- deploy-docker:
filters:
branches:
only: master

0 comments on commit c67a11a

Please sign in to comment.