Skip to content

Commit

Permalink
refactor: 💡 updated cicd pipeline to deploy using rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
william-monroy committed Nov 27, 2023
1 parent 2a7b169 commit 0f55d1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 0f55d1b

Please sign in to comment.