пробуем вебфактори

This commit is contained in:
Serafim Urukov 2021-10-30 02:16:44 +03:00
parent 3c2a453d3d
commit b2358f521f

View File

@ -13,19 +13,28 @@ 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 # - name: Connect to Yandex Cloud on my own
run: | # run: |
echo "${{ secrets.key }}" > "$HOME/key" # echo "${{ secrets.key }}" > "$HOME/key"
chmod 600 "$HOME/key" # chmod 600 "$HOME/key"
ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no 'ls -al' # ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no 'ls -al'
- name: Connect to Yandex Cloud - name: webfactory/ssh-agent
uses: appleboy/ssh-action@master uses: webfactory/ssh-agent@v0.5.3
with: with:
host: ${{ secrets.HOST }} ssh-private-key: ${{ secrets.KEY }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }} - run: |
port: ${{ secrets.PORT }} whois
script: | ls -laF
whoami
ls -al # - name: Connect to Yandex Cloud
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.KEY }}
# port: ${{ secrets.PORT }}
# script: |
# whoami
# ls -al