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