mirror of
https://github.com/Faridik/Carolyn.git
synced 2026-07-08 05:11:52 +00:00
Команды сделал
This commit is contained in:
parent
23d22a857c
commit
ed0b0cad11
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
@ -23,22 +23,12 @@ jobs:
|
||||
echo "${{ secrets.key }}" > "$HOME/key"
|
||||
chmod 600 "$HOME/key"
|
||||
|
||||
- name: Connect to the Yandex Cloud
|
||||
- name: Pull repo and restart Docker containers
|
||||
run:
|
||||
ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no
|
||||
'
|
||||
cd Carolyn &&
|
||||
git pull &&
|
||||
|
||||
docker-compose down &&
|
||||
docker-compose up -d
|
||||
'
|
||||
|
||||
- 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 -laF
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user