forked from jgontrum/spacy-api-docker
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
39 lines (34 loc) · 1.7 KB
/
.travis.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
sudo: required
language: generic
services:
- docker
before_install:
- docker login -u="$DOCKERUSER" -p="$DOCKERPASS"
- docker login -u="$HEROKUUSER" -p="$HEROKUPASS" $HEROKUREPO
install:
- travis_wait 30 docker build -t bbieniek/spacyapi:base_v3 .
- travis_wait 30 docker build -t bbieniek/spacyapi:en_v3 -f docker/en/Dockerfile .
- travis_wait 30 docker build -t bbieniek/spacyapi:en_v3_lg -f docker/en/Dockerfile.lg .
- travis_wait 30 docker build -t bbieniek/spacyapi:de_v3 -f docker/de/Dockerfile .
- travis_wait 30 docker build -t bbieniek/spacyapi:es_v3 -f docker/es/Dockerfile .
- travis_wait 30 docker build -t bbieniek/spacyapi:fr_v3 -f docker/fr/Dockerfile .
- travis_wait 30 docker build -t bbieniek/spacyapi:nl_v3 -f docker/nl/Dockerfile .
- travis_wait 30 docker build -t bbieniek/spacyapi:pt_v3 -f docker/pt/Dockerfile .
- travis_wait 30 docker build -t bbieniek/spacyapi:it_v3 -f docker/it/Dockerfile .
- travis_wait 30 docker build -t bbieniek/spacyapi:all_v3 -f docker/all/Dockerfile .
after_success:
- docker push bbieniek/spacyapi:base_v3
- docker push bbieniek/spacyapi:en_v3
- docker push bbieniek/spacyapi:en_v3_lg
- docker push bbieniek/spacyapi:en_v3_md
- docker push bbieniek/spacyapi:de_v3
- docker push bbieniek/spacyapi:es_v3
- docker push bbieniek/spacyapi:fr_v3
- docker push bbieniek/spacyapi:pt_v3
- docker push bbieniek/spacyapi:it_v3
- docker push bbieniek/spacyapi:nl_v3
- docker push bbieniek/spacyapi:all_v3
- docker tag bbieniek/spacyapi:en_v3 registry.heroku.com/spacy-en/web
- docker push registry.heroku.com/spacy-en/web
- docker tag bbieniek/spacyapi:de_v3 registry.heroku.com/spacy-de/web
- docker push registry.heroku.com/spacy-de/web