Skip to content

Commit

Permalink
Merge pull request #48 from Pugma:dev/chenge_ssh_action
Browse files Browse the repository at this point in the history
change action for ssh access
  • Loading branch information
Pugma authored Jul 28, 2024
2 parents f897af9 + 62e4026 commit 2ea7467
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ jobs:
needs:
- image
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_DEPLOY_HOST }}
username: ${{ secrets.SERVER_DEPLOY_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
name: id_eb25519
known_hosts: ${{ secrets.SERVER_KNOWN_HOSTS }}
- name: Deploy
run: ssh -t ${{ secrets.SERVER_DEPLOY_USER }}@${{ secrets.SERVER_DEPLOY_HOST }} -p ${{ secrets.SERVER_DEPLOY_PORT }} "sudo sh /srv/schedule/deploy.sh schedule"
port: ${{ secrets.SERVER_DEPLOY_PORT }}
script: sudo sh /srv/schedule/deploy.sh schedule

0 comments on commit 2ea7467

Please sign in to comment.