-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update travis config for deployment
- Loading branch information
1 parent
798c99d
commit 55c5015
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,21 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | |
cd $DIR | ||
|
||
[email protected] | ||
SSH_PORT=4242 | ||
COMPOSE_PROJECT_NAME=podcloud | ||
BASE=/home/podcloud/production/services/feeds | ||
KEEP_RELEASES=2 | ||
|
||
RELEASEN=$(date -u +%Y%m%d%H%M%S) | ||
|
||
echo "Creating release" | ||
ssh $SSH_HOST BASE=$BASE RELEASEN=$RELEASEN 'bash -s' <<'CMD' | ||
ssh -p$SSH_PORT $SSH_HOST BASE=$BASE RELEASEN=$RELEASEN 'bash -s' <<'CMD' | ||
mkdir -vp $BASE/releases/$RELEASEN | ||
CMD | ||
|
||
rsync -avzPhc --recursive --files-from=deploy.files . $SSH_HOST:$BASE/releases/$RELEASEN/ | ||
rsync -e "ssh -p$SSH_PORT" -avzPhc --recursive --files-from=deploy.files . $SSH_HOST:$BASE/releases/$RELEASEN/ | ||
|
||
ssh $SSH_HOST BASE=$BASE KEEP_RELEASES=$KEEP_RELEASES RELEASEN=$RELEASEN COMPOSE_PROJECT_NAME=$COMPOSE_PROJECT_NAME 'bash -s' <<'CMD' | ||
ssh -p$SSH_PORT $SSH_HOST BASE=$BASE KEEP_RELEASES=$KEEP_RELEASES RELEASEN=$RELEASEN COMPOSE_PROJECT_NAME=$COMPOSE_PROJECT_NAME 'bash -s' <<'CMD' | ||
# exit when any command fails | ||
set -e | ||
|