Files
finistdev-configuration-as-…/.gitea/workflows/deploy.yml
ministicraft f0cdb7fc32 fix: disable git flock to fix flock(LOCK_EX) bad file descriptor error
Set GIT_OPTIONAL_LOCKS=0 and gc.writeCommitGraph=false to avoid
POSIX flock calls that fail on filesystems without lock support (NFS,
overlayfs, some VPS setups).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-13 22:57:13 +02:00

26 lines
734 B
YAML

name: Deploy presentation
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy via SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
export GIT_OPTIONAL_LOCKS=0
mkdir -p /var/www/prez-finistdev
cd /var/www/prez-finistdev
git config --global gc.writeCommitGraph false
git clone https://git.cloud.arnaud-pc.fr/ministicraft/finistdev-configuration-as-code.git . 2>/dev/null || git pull origin master