From fb4a6db1811967daca17c374968494ea6413a1fa Mon Sep 17 00:00:00 2001 From: Marc Riera Date: Thu, 19 Dec 2024 13:48:45 +0100 Subject: [PATCH] Deploy test --- .forgejo/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 0591c9c..c410d16 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -9,6 +9,7 @@ jobs: publish: runs-on: ubuntu-latest env: + SSH_USER: ${{ secrets.PUBLISHER_USER }} SSH_PRIVATE_KEY: ${{ secrets.PUBLISHER_PRIVATE_KEY }} SSH_HOST: ${{ secrets.PUBLISHER_HOST }} SSH_PORT: ${{ secrets.PUBLISHER_PORT }} @@ -33,4 +34,5 @@ jobs: apt update && apt install -y rsync mkdir ~/.ssh ssh-keyscan -p $SSH_PORT $SSH_HOST > ~/.ssh/known_hosts - rsync -atv --progress --delete -e "ssh -p $SSH_PORT" ./public/ publisher@$SSH_HOST:/app + scp /usr/bin/rsync $SSH_USER@$SSH_HOST:/app/rsync + rsync -atv --rsync-path=/config/rsync --progress --delete -e "ssh -p $SSH_PORT" ./public $SSH_USER@$SSH_HOST:/app