Update .forgejo/workflows/deploy.yaml
All checks were successful
deploy blog / deploy (push) Successful in 1m2s

This commit is contained in:
XenGi 2026-02-15 19:43:13 +01:00
parent c2cbeec0e5
commit 1eb7df1eb0

View file

@ -13,14 +13,14 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: apk --no-cache add hugo python3 py3-pip git openssh-client rsync run: apk --no-cache add hugo python3 py3-pip git openssh-client rsync
- name: Check install - name: Check versions
run: | run: |
cat /etc/os-release cat /etc/os-release
git version git version
hugo version hugo version
python --version python --version
- name: Checkout repo - name: Checkout repository
run: | run: |
git clone -b ${{ forgejo.ref_name }} --recursive https://git.berlin.ccc.de/cccb-website-team/www.git . git clone -b ${{ forgejo.ref_name }} --recursive https://git.berlin.ccc.de/cccb-website-team/www.git .
git status git status
@ -42,10 +42,10 @@ jobs:
ssh-keygen -f ~/.ssh/id_ed25519 -y > ~/.ssh/id_ed25519.pub ssh-keygen -f ~/.ssh/id_ed25519 -y > ~/.ssh/id_ed25519.pub
cat ~/.ssh/id_ed25519.pub cat ~/.ssh/id_ed25519.pub
- name: Sync rendered site to staging - name: Rsync rendered site
env: env:
DEPLOY_DIR: ${{ forgejo.ref_name == 'production' && '/srv/http/www/' || '/srv/http/www-staging/' }} 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 - name: Cleanup
if: ${{ always() }} if: ${{ always() }}