-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 1.16 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
language: csharp
mono: none
branches:
only:
- dev-0.1
dotnet: 2.2.105
dist: xenial
git:
submodules: false
script:
- dotnet publish -c release -r ubuntu.18.04-x64
- rsync -r --delete-after --quiet $TRAVIS_BUILD_DIR/learning-together-api/bin/Release/netcoreapp2.2/ubuntu.18.04-x64/* [email protected]:/home/ltuser/lt-api
- ssh -i ./ltuserssh_rsa [email protected] 'sudo /bin/systemctl restart ltapi'
before_script:
- openssl aes-256-cbc -K $encrypted_d671cfae17dc_key -iv $encrypted_d671cfae17dc_iv -in ltuserssh_rsa.enc -out ./ltuserssh_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 ./ltuserssh_rsa
- ssh-add ./ltuserssh_rsa
- mkdir -p ~/.ssh && echo "Host *" > ~/.ssh/config && echo " StrictHostKeyChecking no" >> ~/.ssh/config
- ssh-keyscan -H 18.224.56.34 >> ~/.ssh/known_hosts
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
before_install:
- openssl aes-256-cbc -K $encrypted_7283ec8c35b0_key -iv $encrypted_7283ec8c35b0_iv -in learning-together-api/appsettings.Production.json.enc -out learning-together-api/appsettings.Production.json -d