diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1a3694..1de567f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,11 +15,12 @@ jobs: # with: # ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Install SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Test SSH run: | - eval "$(ssh-agent -s)" - echo ${{ secrets.SSH_PRIVATE_KEY }} > id_rsa - ssh-add id_rsa - ssh-add -l ssh adnane@130.61.32.252 ls / docker -H ssh://adnane@130.61.32.252 ps