From 1eb7df1eb0618397bafdfd7d18175efc022337f3 Mon Sep 17 00:00:00 2001 From: xengi Date: Sun, 15 Feb 2026 19:43:13 +0100 Subject: [PATCH] Update .forgejo/workflows/deploy.yaml --- .forgejo/workflows/deploy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index a7f4f2b..132d9af 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -13,14 +13,14 @@ jobs: - name: Install dependencies run: apk --no-cache add hugo python3 py3-pip git openssh-client rsync - - name: Check install + - name: Check versions run: | cat /etc/os-release git version hugo version python --version - - name: Checkout repo + - name: Checkout repository run: | git clone -b ${{ forgejo.ref_name }} --recursive https://git.berlin.ccc.de/cccb-website-team/www.git . git status @@ -42,10 +42,10 @@ jobs: ssh-keygen -f ~/.ssh/id_ed25519 -y > ~/.ssh/id_ed25519.pub cat ~/.ssh/id_ed25519.pub - - name: Sync rendered site to staging + - name: Rsync rendered site env: DEPLOY_DIR: ${{ forgejo.ref_name == 'production' && '/srv/http/www/' || '/srv/http/www-staging/' }} - run: rsync -var -e 'ssh -i ~/.ssh/id_ed25519' ./public/ deploy@www.berlin.ccc.de:$DEPLOY_DIR + run: rsync -var -e 'ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=yes' ./public/ deploy@www.berlin.ccc.de:$DEPLOY_DIR - name: Cleanup if: ${{ always() }}