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() }}