From ed0b0cad110a9979afa509600b89fc0dea9607de Mon Sep 17 00:00:00 2001 From: Mifarse Date: Sat, 30 Oct 2021 22:08:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=8B=20?= =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e998b0a..6e3d347 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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