Skip to content

Commit

Permalink
fix github-action
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadhabibi14 committed Aug 9, 2023
1 parent 605ceed commit 26b860f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: '${{ secrets.SERVER_IP }}'
known_hosts: 'bakekok walakakok'

- name: Add known_hosts 🖥️
run: ssh-keyscan -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts
run: ssh-keyscan -p ${{ secrets.SSH_PORT}} -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts

- name: Upload with rsync 🔁
run: rsync -avz ./ root@${{ secrets.SERVER_IP }}:/root/wabot
run: rsync -avz "ssh -p ${{ secrets.SSH_PORT }}" ./ root@${{ secrets.SERVER_IP }}:/root/wabot

# Execute command ke VPS
- name: Execute Command ☣️
Expand All @@ -29,7 +29,7 @@ jobs:
host: ${{ secrets.SERVER_IP }}
username: root
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
port: ${{ secrets.SSH_PORT }}
script: |
cd /root/wabot
go build main.go

0 comments on commit 26b860f

Please sign in to comment.