forked from OCR-D/ocrd_all
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
59 lines (59 loc) · 1.93 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: 2.1
jobs:
build:
docker:
- image: circleci/buildpack-deps:stretch
steps:
- checkout
- setup_remote_docker # https://circleci.com/docs/2.0/building-docker-images/
- run: make docker-maximum
deploy:
docker:
- image: circleci/buildpack-deps:stretch
environment:
GIT_DEPTH: "--depth 1"
steps:
- checkout
- setup_remote_docker # https://circleci.com/docs/2.0/building-docker-images/
- run: make docker-minimum-git
- run: docker tag ocrd/all:minimum-git ocrd/all:minimum
- run: make docker-medium-git
- run: docker tag ocrd/all:medium-git ocrd/all:medium
- run: make docker-maximum-git
- run: docker tag ocrd/all:maximum-git ocrd/all:maximum
- run: make docker-maximum-cuda-git
- run: docker tag ocrd/all:maximum-cuda-git ocrd/all:maximum-cuda
- run:
name: Login to Docker Hub
command: echo "$DOCKERHUB_PASS" | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
- run:
name: Push images to Docker Hub in parallel
no_output_timeout: 2.5h
command: |
docker push ocrd/all:minimum &
docker push ocrd/all:minimum-git &
docker push ocrd/all:medium &
docker push ocrd/all:medium-git &
docker push ocrd/all:maximum &
docker push ocrd/all:maximum-git &
docker push ocrd/all:maximum-cuda &
docker push ocrd/all:maximum-cuda-git &
wait
- run:
name: Create a date-versioned mirror of ocrd/all:maximum
command: bash release.sh release-dockerhub
- run: curl -X POST "$MICROBADGER_WEBHOOK" || true
workflows:
version: 2
build-master:
jobs:
- deploy:
filters:
branches:
only: master
build-pull-request:
jobs:
- build:
filters:
branches:
ignore: master