test new workflow
This commit is contained in:
parent
d1554ee8d9
commit
bca40fedd1
1 changed files with 2 additions and 2 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
|
@ -28,11 +28,11 @@ jobs:
|
|||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -t rsa [${{ secrets.SSH_HOST }}] >> ~/.ssh/known_hosts
|
||||
#ssh-keyscan -t rsa [${{ secrets.SSH_HOST }}] >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Connect to server
|
||||
run: |
|
||||
ssh ${{ secrets.SSH_USERNAME }}@[${{ secrets.SSH_HOST }}] -p ${{ secrets.SSH_PORT }} "whoami"
|
||||
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@[${{ secrets.SSH_HOST }}] -p ${{ secrets.SSH_PORT }} "whoami"
|
||||
|
||||
# - name: SSH into VM and deploy
|
||||
# uses: appleboy/ssh-action@master
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue