forked from InseeFr/Eno-WS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 855 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
23
24
25
26
27
28
29
30
31
32
33
34
language: java
jdk:
- openjdk8
sudo: required
services:
- docker
before_script:
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
install:
- bash scripts/install.sh $TRAVIS_BRANCH
script:
- mvn clean install -DskipTests
- docker build -t inseefr/eno-ws .
after_script:
- bash scripts/gitbook.sh
deploy:
- skip_cleanup: true
provider: script
script:
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
&& docker push inseefr/eno-ws
on:
branch: master
- skip_cleanup: true
provider: script
script: kubectl --token $K8S_TOKEN --server $K8S_SERVER --insecure-skip-tls-verify rollout restart deployment/eno -n pogues-eno
on:
branch: master