From 480dbba1f218dec2d1f966be8099b6954bda6f0f Mon Sep 17 00:00:00 2001 From: Dhaverd Date: Wed, 13 Mar 2024 11:28:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/gitea-actions.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/gitea-actions.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/gitea-actions.yml b/.gitea/workflows/gitea-actions.yml index f975c0c..7de8d81 100644 --- a/.gitea/workflows/gitea-actions.yml +++ b/.gitea/workflows/gitea-actions.yml @@ -11,19 +11,18 @@ jobs: run: | echo "${{ secrets.ENVIRONMENT }}" > ./.env cat ./.env - - name: Stop site service on remote server - run: | - ssh root@92.246.136.233 - yeoNc2gy7AZC - systemctl stop resume - exit - # uses: D3rHase/ssh-command-action@v0.2.2 - # with: - # host: ${{secrets.SSH_HOST}} - # user: ${{secrets.SSH_USER}} - # private_key: ${{secrets.SSH_KEY}} - # command: | - # systemctl stop resume + - name: Know current user and host + run: | + echo $USER + ifconfig -a + - name: Stop site service on remote server + uses: D3rHase/ssh-command-action@v0.2.2 + with: + host: ${{secrets.SSH_HOST}} + user: ${{secrets.SSH_USER}} + private_key: ${{secrets.SSH_KEY}} + command: | + systemctl stop resume - name: Checkout code uses: actions/checkout@v3 - name: Install PHP