-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.13 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
jobs:
include:
- stage: Build docker images
name: Geo rest
language: minimal
services:
- docker
install:
- docker pull teamd2018/courier_emulator:latest
script:
- docker build -t $DOCKERHUB_OWNER/courier_emulator:$TRAVIS_COMMIT -f Dockerfile
--cache-from teamd2018/courier_emulator:latest .
- docker tag $DOCKERHUB_OWNER/courier_emulator:$TRAVIS_COMMIT $DOCKERHUB_OWNER/courier_emulator:latest
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_NAME" --password-stdin
- docker push $DOCKERHUB_OWNER/courier_emulator
if: branch = master
branches:
only:
- master
- stage: deploy
language: bash
deploy:
- provider: script
skip_cleanup: true
script: bash deploy.sh $DEPLOY_TARGET
on:
branch: master
- provider: script
skip_cleanup: true
script: bash deploy.sh $DEPLOY_TARGET
on:
branch: develop
before_deploy:
- openssl aes-256-cbc -K $encrypted_19a85d06465a_key -iv $encrypted_19a85d06465a_iv
-in travis_key.enc -out ./travis_key -d
if: branch = master
branches:
only:
- master