Update push.yml
This commit is contained in:
parent
eee85837d1
commit
f792fe7fd7
1 changed files with 5 additions and 1 deletions
6
.github/workflows/push.yml
vendored
6
.github/workflows/push.yml
vendored
|
|
@ -20,7 +20,11 @@ jobs:
|
|||
host='${{ secrets.IP }}'
|
||||
hosts="$(dig +short "$host" | grep -v '\.$' | sed -z 's|\n|,|g')$host"
|
||||
ssh-keyscan -H "$hosts" > ~/.ssh/known_hosts
|
||||
|
||||
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
host='${{ secrets.DEST_IP }}'
|
||||
hosts="$(dig +short "$host" | grep -v '\.$' | sed -z 's|\n|,|g')$host"
|
||||
ssh-keyscan -H "$hosts" > ~/.ssh/known_hosts
|
||||
- name: Pushing Files...
|
||||
run: |
|
||||
echo "Pushing Files..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue