This commit is contained in:
Serafim Urukov 2021-10-30 02:24:34 +03:00
parent e3efed2f4f
commit c8fa201b5b

View File

@ -13,12 +13,6 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# - name: Connect to Yandex Cloud on my own
# run: |
# echo "${{ secrets.key }}" > "$HOME/key"
# chmod 600 "$HOME/key"
# ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no 'ls -al'
- name: webfactory/ssh-agent - name: webfactory/ssh-agent
uses: webfactory/ssh-agent@v0.5.3 uses: webfactory/ssh-agent@v0.5.3
with: with:
@ -28,13 +22,19 @@ jobs:
whoami whoami
ls -laF ls -laF
# - name: Connect to Yandex Cloud - name: Connect to Yandex Cloud on my own
# uses: appleboy/ssh-action@master run: |
# with: echo "${{ secrets.key }}" > "$HOME/key"
# host: ${{ secrets.HOST }} chmod 600 "$HOME/key"
# username: ${{ secrets.USERNAME }} ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no 'ls -al'
# key: ${{ secrets.KEY }}
# port: ${{ secrets.PORT }} - name: Connect to Yandex Cloud
# script: | uses: appleboy/ssh-action@master
# whoami with:
# ls -al host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
whoami
ls -laF