-
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.
refactor: 💡 updated cicd pipeline to deploy using rsync
- Loading branch information
1 parent
2a7b169
commit 0f55d1b
Showing
1 changed file
with
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,10 +132,10 @@ jobs: | |
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "rm -rf apps/web" | ||
- name: Deploy to Lightsail using scp | ||
- name: Deploy to Lightsail | ||
run: | | ||
sudo apt-get install -y sshpass | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" scp -o StrictHostKeyChecking=no -r apps/web [email protected]:/home/ubuntu/apps --exclude apps/web/node_modules | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" rsync -avz --exclude node_modules apps/web [email protected]:/home/ubuntu/apps | ||
- name: Set custom package.json | ||
run: | | ||
|
@@ -193,10 +193,10 @@ jobs: | |
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "rm -rf apps/docs" | ||
- name: Deploy to Lightsail using scp excluding node_modules | ||
- name: Deploy to Lightsail | ||
run: | | ||
sudo apt-get install -y sshpass | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" scp -o StrictHostKeyChecking=no -r apps/docs [email protected]:/home/ubuntu/apps --exclude apps/docs/node_modules | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" rsync -avz --exclude node_modules apps/docs [email protected]:/home/ubuntu/apps | ||
- name: Set custom package.json | ||
run: | | ||
|