From 435e8c2fbc1663ee1937f20a6f384e43c4dace8a Mon Sep 17 00:00:00 2001 From: Marc Riera Date: Thu, 19 Dec 2024 15:04:41 +0100 Subject: [PATCH] Update publisher --- .forgejo/workflows/build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 272dc10..fa11ac5 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -7,8 +7,9 @@ on: jobs: publish: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: + SSH_USER: ${{ secrets.PUBLISHER_USER }} SSH_PRIVATE_KEY: ${{ secrets.PUBLISHER_PRIVATE_KEY }} SSH_HOST: ${{ secrets.PUBLISHER_HOST }} SSH_PORT: ${{ secrets.PUBLISHER_PORT }} @@ -31,6 +32,5 @@ jobs: eval $(ssh-agent -s) echo "$SSH_PRIVATE_KEY" | ssh-add - 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:/usr/share/nginx/html/ \ No newline at end of file + rsync -atv --progress --delete -e "ssh -p $SSH_PORT" ./public/ $SSH_USER@$SSH_HOST:/app