mirror of
https://github.com/Faridik/Carolyn.git
synced 2026-07-08 13:21:53 +00:00
пробуем вебфактори
This commit is contained in:
parent
3c2a453d3d
commit
b2358f521f
37
.github/workflows/deploy.yml
vendored
37
.github/workflows/deploy.yml
vendored
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user