Команды сделал

This commit is contained in:
Serafim Urukov 2021-10-30 22:08:19 +03:00
parent 23d22a857c
commit ed0b0cad11

View File

@ -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