-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (19 loc) · 849 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
sudo: required
services:
- docker
before_install:
- docker build -t bhanukandregula/multi-docker-test -f ./client/Dockerfile.dev .
script:
- docker run -e CI=true bhanukandregula/multi-docker-test npm test
after_success:
- docker build -t bhanukandregula/multi-docker-client ./client
- docker build -t bhanukandregula/multi-docker-nginx ./nginx
- docker build -t bhanukandregula/multi-docker-server ./server
- docker build -t bhanukandregula/multi-docker-worker ./worker
# Login to the Docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# take images and push them to docker hub
- docker push bhanukandregula/multi-docker-client
- docker push bhanukandregula/multi-docker-nginx
- docker push bhanukandregula/multi-docker-server
- docker push bhanukandregula/multi-docker-worker