test runner - fix v9
Some checks failed
Some checks failed
This commit is contained in:
parent
edaecea449
commit
c86a6ba77d
1 changed files with 12 additions and 3 deletions
|
|
@ -122,9 +122,18 @@ jobs:
|
|||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Setup SSH
|
||||
uses: webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
run: |
|
||||
apt-get update && apt-get install -y openssh-client
|
||||
mkdir -p ~/.ssh
|
||||
cat << 'KEYEOF' > ~/.ssh/deploy_key
|
||||
${{ secrets.SSH_PRIVATE_KEY }}
|
||||
KEYEOF
|
||||
chmod 600 ~/.ssh/deploy_key
|
||||
|
||||
echo "=== Проверяем ключ ==="
|
||||
ssh-keygen -lf ~/.ssh/deploy_key
|
||||
echo "=== Добавляем хост ==="
|
||||
ssh-keyscan -p ${{ env.DEPLOY_PORT }} -H ${{ env.DEPLOY_HOST }} >> ~/.ssh/known_hosts 2>/dev/null
|
||||
|
||||
- name: Add host to known_hosts
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue