Skip to content

Commit 3298b1b

Browse files
committed
github actions add private key
1 parent 548cb50 commit 3298b1b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ jobs:
5959
uses: wangyucode/[email protected]
6060
with:
6161
host: ${{ secrets.SSH_HOST }}
62-
username: ${{ secrets.SSH_USERNAME }}
63-
password: ${{ secrets.SSH_PASSWORD }}
62+
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}
6463
localDir: '.'
6564
remoteDir: ${{ secrets.IMAGE_DIR_PATH }}
6665

@@ -69,7 +68,7 @@ jobs:
6968
with:
7069
host: ${{ secrets.SSH_HOST }}
7170
username: ${{ secrets.SSH_USERNAME }}
72-
password: ${{ secrets.SSH_PASSWORD }}
71+
key: ${{ secrets.SSH_PRIVATE_KEY }}
7372
script: |
7473
# load local image
7574
gunzip -c ${{ secrets.IMAGE_DIR_PATH }}/house.tar.gz | docker load

0 commit comments

Comments
 (0)