Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
try deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
wwylele committed Sep 12, 2019
1 parent c60e887 commit c46aa9e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -9,6 +9,11 @@ install:
script:
- cargo build -p index3ds -p httpstub --release -v
- cargo web deploy -p index3ds-frontend --release -v
deploy:
provider: script
script: bash .travis/deploy.sh
on:
branch: master

env:
global:
Expand Down
6 changes: 6 additions & 0 deletions .travis/deploy.sh
@@ -0,0 +1,6 @@
#!/bin/bash

openssl aes-256-cbc -K $encrypted_e850a6789831_key -iv $encrypted_e850a6789831_iv -in index3ds-deploy-key.enc -out index3ds-deploy-key -d
chmod 600 index3ds-deploy-key
ssh-add index3ds-deploy-key
ssh ubuntu@index3ds.com 'bash -s' < /home/ubuntu/index3ds/after-deploy.sh
Binary file added index3ds-deploy-key.enc
Binary file not shown.

0 comments on commit c46aa9e

Please sign in to comment.