Skip to content

Commit 7f9dc91

Browse files
committed
format yaml files
1 parent cb8c233 commit 7f9dc91

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ansible-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@ jobs:
5050
- name: Setup SSH
5151
run: |
5252
mkdir -p $HOME/.ssh
53-
echo "${{ secrets.SSH_PRIVATE_KEY }}" > $HOME/.ssh/id_rsa
53+
chmod 700 $HOME/.ssh
54+
55+
echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' > $HOME/.ssh/id_rsa
5456
chmod 600 $HOME/.ssh/id_rsa
57+
5558
ssh-keyscan -H ${{ secrets.VM_HOST }} >> $HOME/.ssh/known_hosts
59+
chmod 644 $HOME/.ssh/known_hosts
60+
61+
ls -la $HOME/.ssh
5662
5763
- name: Deploy with Ansible
5864
run: |

0 commit comments

Comments
 (0)