Skip to content

Commit

Permalink
test rsync 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadhabibi14 committed Jan 25, 2024
1 parent 173caf2 commit e1c38e6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,7 @@ jobs:
run: ssh-keyscan -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts

- name: Upload with rsync 🔁
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > deploy_key
chmod 600 ./deploy_key
rsync --delete -avz \
--exclude=".git" --exclude=".github" \
-e 'ssh -i ./deploy_key -o StrictHostKeyChecking=no' \
--exclude /deploy_key \
./ ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/bacaku
run: rsync -avz --exclude=".git" --exclude=".github" ./ root@${{ secrets.SERVER_IP }}:/bacaku

# Execute command ke VPS
- name: Execute Command ☣️
Expand All @@ -40,4 +33,5 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SERVER_PORT }}
script: |
python3 --version
cd ~/bacaku
echo 'Haloo'

0 comments on commit e1c38e6

Please sign in to comment.