Update push.yml
This commit is contained in:
parent
3bdff9ba02
commit
6343ece0e7
1 changed files with 6 additions and 5 deletions
11
.github/workflows/push.yml
vendored
11
.github/workflows/push.yml
vendored
|
|
@ -13,12 +13,13 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Getting Ready...
|
||||
- name: Write SSH keys
|
||||
run: |
|
||||
echo "Getting Ready..."
|
||||
mkdir -p ~/.ssh/
|
||||
echo "HOST *" > ~/.ssh/config
|
||||
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
host='host.example.com'
|
||||
hosts="$(dig +short "$host" | grep -v '\.$' | sed -z 's|\n|,|g')$host"
|
||||
ssh-keyscan -H "$hosts" > ~/.ssh/known_hosts
|
||||
|
||||
- name: Pushing Files...
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue