From b2358f521fc23f02d189f0e4c2c66bd2a7efea47 Mon Sep 17 00:00:00 2001 From: Mifarse Date: Sat, 30 Oct 2021 02:16:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B1=D1=83=D0=B5=D0=BC=20?= =?UTF-8?q?=D0=B2=D0=B5=D0=B1=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 37 ++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e8ec5cf..b987c68 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,19 +13,28 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: Connect to Yandex Cloud on my own - run: | - echo "${{ secrets.key }}" > "$HOME/key" - chmod 600 "$HOME/key" - ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no 'ls -al' + # - name: Connect to Yandex Cloud on my own + # run: | + # echo "${{ secrets.key }}" > "$HOME/key" + # chmod 600 "$HOME/key" + # ssh -i $HOME/key carolyn@${{ secrets.HOST }} -o StrictHostKeyChecking=no 'ls -al' - - name: Connect to Yandex Cloud - uses: appleboy/ssh-action@master + - name: webfactory/ssh-agent + uses: webfactory/ssh-agent@v0.5.3 with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.KEY }} - port: ${{ secrets.PORT }} - script: | - whoami - ls -al + ssh-private-key: ${{ secrets.KEY }} + + - run: | + whois + ls -laF + + # - 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