Skip to content

Commit

Permalink
Merge pull request #1118 from OCR-D/circleci-tag-docker
Browse files Browse the repository at this point in the history
circleci: run deploy only for tagged releases and push only tagged docker images #1092
  • Loading branch information
kba authored Oct 18, 2023
2 parents bf25f11 + fd33be9 commit 21c943f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,19 @@ jobs:
- run:
name: Login to Docker Hub
command: echo "$DOCKERHUB_PASS" | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
- run: docker push ocrd/core
- run: docker push ocrd/core-cuda
- run: docker tag ocrd/core ocrd/core:$(git describe --tags)
- run: docker tag ocrd/core-cuda ocrd/core-cuda:$(git describe --tags)
- run: docker push ocrd/core:$(git describe --tags)
- run: docker push ocrd/core-cuda:$(git describe --tags)

workflows:
version: 2
build-master:
jobs:
- deploy:
filters:
branches:
only: master
tags:
only: /^v.*/
test-pull-request:
jobs:
- test-python37
Expand Down

0 comments on commit 21c943f

Please sign in to comment.