5th time's the charm
This commit is contained in:
1 parent
cbccacd023
commit
a8dfbb624f
1 file changed
+5
-5
@@ -63,18 +63,18 @@ jobs:
|
|||||||
echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/deploy_key
|
echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/deploy_key
|
||||||
chmod 600 $HOME/.ssh/deploy_key
|
chmod 600 $HOME/.ssh/deploy_key
|
||||||
|
|
||||||
SSH_CMD="ssh -i $HOME/.ssh/deploy_key -o StrictHostKeyChecking=no itzmineydev@localhost"
|
SSH_ARGS="-i $HOME/.ssh/deploy_key -o StrictHostKeyChecking=no"
|
||||||
|
|
||||||
RELEASE_ID="web-$(date -u +%Y%m%d-%H%M%S)"
|
RELEASE_ID="web-$(date -u +%Y%m%d-%H%M%S)"
|
||||||
TARGET_DIR="$RELEASES_DIR/$RELEASE_ID"
|
TARGET_DIR="$RELEASES_DIR/$RELEASE_ID"
|
||||||
|
|
||||||
$SSH_CMD "mkdir -p $TARGET_DIR"
|
ssh $SSH_ARGS itzmineydev@localhost "mkdir -p $TARGET_DIR"
|
||||||
|
|
||||||
rsync -az -e "$SSH_CMD" \
|
rsync -az -e "$SSH_ARGS" \
|
||||||
./dist/itzmineydev/ itzmineydev@localhost:"$TARGET_DIR/"
|
./dist/itzmineydev/ itzmineydev@localhost:"$TARGET_DIR/"
|
||||||
|
|
||||||
$SSH_CMD "test -d $TARGET_DIR/browser && test -d $TARGET_DIR/meta"
|
ssh $SSH_ARGS itzmineydev@localhost "test -d $TARGET_DIR/browser && test -d $TARGET_DIR/meta"
|
||||||
$SSH_CMD "ln -sfn $RELEASE_ID $CURRENT_LINK"
|
ssh $SSH_ARGS itzmineydev@localhost "ln -sfn $RELEASE_ID $CURRENT_LINK"
|
||||||
|
|
||||||
echo "Successfully published frontend release $RELEASE_ID"
|
echo "Successfully published frontend release $RELEASE_ID"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user