-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
33 lines (32 loc) · 1.56 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
language: ruby
services:
- docker
cache:
bundler: true
directories:
- '$HOME/docker'
script:
- yarn
before_install:
- openssl aes-256-cbc -K $encrypted_8848fde83ebf_key -iv $encrypted_8848fde83ebf_iv
-in travis.enc -out ~/.ssh/travis -d
- chmod 600 ~/.ssh/travis
addons:
ssh_known_hosts: 47.56.158.125
before_deploy:
- yarn run build
- export DOCKER_CLI_EXPERIMENTAL=enabled
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t xiaodi93/ant-design:latest .
- docker push xiaodi93/ant-design:latest
# - scp ./docker-compose.yaml root@47.56.158.125:/root/server/ant-design-vue.yaml
# - ssh -i ~/.ssh/travis root@47.56.158.125 "cd server;docker-compose -f ant-design-vue.yaml up -d"
deploy:
provider: releases
api_key:
secure: bTibLp5iRNbwoYkVYqaTBn8m9FEHd875fF83r75Msc6BLp6UDHfHLG+oc5v0Ioko28tOVeSVeP+Xu5geirYyyZJhclYb4qVYM9M4EGU94OaO03OlpB6CgyJW28xue7QTHxxj39rUrkU+kIP7fE+Fhq7qDFHi+QqPZJZy8ex/PeUZN6pmSbs207tMUXdVBDEk0jaJBCmTGv7UQUXQGnpBEh7n9ggN/V/RqX1QPsGAE+pIJTwYNBLQdmd0Z55u21mBVESotF05mlLUNstPUOr357NHVXshhP63xa1bLBIk3d75bk+cO+esXxCG14J2eX5ACMPPUThBPxHENvJDY9gWkmkNnnMUB5xDdT81CBwR9+QENmCjhphrsd7lRO4HJNtl1ddlcsYdQWudJPGjv4Bo92h3xhDafhLT3Qa7JITvp3MBTu8QQtINQkmQkXawjwR8cNv78zUdE8KndxG6C0VkuaqfHazvALS0Csr+pCAsHsbc8V7s3mbLLWANTMmOFVisHsln6qnD7A1IMYOI2JSBfonKJYCMxrOIYE/iPXCW2CkpJh8N4lhNsBuKUWgyqj5ZAOZQ0rsGd/HbETR/v89rtml22bwX+gzTYfocmdo7rUY5rlXtvXH/QULQXSh1WEzIP05ykoKqkq+cycBUzcUuMqpftZBXqClEaEyVv/LMrSc=
skip_cleanup: true
overwrite: true
on:
repo: edenleung/think-ant-vue
tags: true