Skip to content

Commit

Permalink
Update cd-branch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengming-Li authored Apr 10, 2024
1 parent 655d351 commit 69654d1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/cd-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Install sshpass
run: sudo apt-get install -y sshpass
- name: SSH into server
run: sshpass -p ${{ secrets.SSH_PASSWORD }} ssh root@hozer-51.ocf.berkeley.edu 'echo hello'
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@v1.0.3
with:
host: hozer-51.ocf.berkeley.edu
username: root
key: ${{ secrets.SSH_KEY }}
port: 22
script: whoami

0 comments on commit 69654d1

Please sign in to comment.