diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-10-21 22:33:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 22:33:11 +0200 |
| commit | f5ffc1ce99a1fdf622cc17559ec6dc051380362c (patch) | |
| tree | aeadffc1732e2d94d907172f49d780b8fd54ca24 /.github | |
| parent | 8df510753f626718822d4769f38cc6f4cb667be5 (diff) | |
Zero sense but whatever
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/deploy.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e93166e..1d1fb1e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -100,11 +100,14 @@ jobs: run: | scp -r dist/frontend/* ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }}:${{ secrets.TARGET_PATH }}/ + - name: Debug SSH Connection + run: ssh ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "whoami; hostname; pwd" + - name: Stop service - run: ssh app@${{ secrets.TARGET_HOST }} "echo ${{ secrets.TARGET_PASSWORD }} | sudo -S /usr/bin/systemctl stop busurbano.service" + run: ssh ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "echo ${{ secrets.TARGET_PASSWORD }} | sudo -S /usr/bin/systemctl stop busurbano.service" - name: Upload backend run: scp -r dist/backend/* app@${{ secrets.TARGET_HOST }}:/opt/busurbano/ - name: Start service - run: ssh app@${{ secrets.TARGET_HOST }} "echo ${{ secrets.TARGET_PASSWORD }} | sudo -S /usr/bin/systemctl start busurbano.service" + run: ssh ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "echo ${{ secrets.TARGET_PASSWORD }} | sudo -S /usr/bin/systemctl start busurbano.service" |
