-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
executable file
·46 lines (41 loc) · 1.37 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
40
41
42
43
44
45
46
language: go
dist: bionic
services: docker
node_js: '13'
go: 1.13.x
before_script:
- sudo apt-get -qq update
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get -qq update
- sudo apt-get install docker-ce docker-ce-cli containerd.io -y
- docker info
- docker-compose --version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname
-s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
- nvm install 13
- go mod vendor
- yarn
script:
- yarn build || travis_terminate 1;
- make build
- DOCKER_HOST='ssh://[email protected]' docker-compose stop web api
- DOCKER_HOST='ssh://[email protected]' docker-compose rm -f web api
- DOCKER_HOST='ssh://[email protected]' docker-compose up -d --build web api
addons:
apt:
packages:
- sshpass
ssh_known_hosts:
- 45.79.80.53
env: "-DOCKER_COMPOSE_VERSION=1.25.4"
before_install:
- openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv
-in deploy_rsa.enc -out deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 deploy_rsa
- ssh-add deploy_rsa