From 93b7d5f355925d0a68d7b189af456020e052cd82 Mon Sep 17 00:00:00 2001 From: Marc Riera Date: Sat, 17 Feb 2024 16:40:59 +0100 Subject: [PATCH] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 5ea3b17..a42b8e3 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -10,6 +10,8 @@ jobs: runs-on: ubuntu-latest env: SSH_PRIVATE_KEY: ${{ secrets.PUBLISHER_PRIVATE_KEY }} + SSH_HOST: ${{ secrets.PUBLISHER_HOST }} + SSH_PORT: ${{ secrets.PUBLISHER_PORT }} steps: - uses: actions/checkout@v4 with: @@ -30,5 +32,5 @@ jobs: echo "$SSH_PRIVATE_KEY" | ssh-add - apt update && apt install -y rsync mkdir ~/.ssh - ssh-keyscan -p 3001 sakura.local > ~/.ssh/known_hosts - rsync -atv --progress --delete -e 'ssh -p 3001' ./public/ publisher@sakura.local:/usr/share/nginx/html/ \ No newline at end of file + 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