-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
21 lines (18 loc) · 840 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
sudo: required
services:
- docker
before_install:
- docker build -t nreoch9/nextjs-graphql-hooks-auth-client-test -f ./client/Dockerfile.dev ./client
script:
- docker run nreoch9/nextjs-graphql-hooks-auth-client-test yarn test -- --coverage
after_success:
# Build images
- docker build -t nreoch9/nextjs-graphql-hooks-auth-client:latest ./client
# - docker build -t nreoch9/nextjs-graphql-hooks-auth-nginx:latest ./nginx
- docker build -t nreoch9/nextjs-graphql-hooks-auth-server:latest ./server
# Login to the docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# Push images to docker hub
- docker push nreoch9/nextjs-graphql-hooks-auth-client:latest
# - docker push nreoch9/nextjs-graphql-hooks-auth-nginx:latest
- docker push nreoch9/nextjs-graphql-hooks-auth-server:latest