info-canicule/.forgejo/workflows/deploy.yml
Florian 2071281f6f
Some checks failed
Deploy info-canicule / deploy (push) Failing after 3s
ci: aligner runs-on sur ubuntu-latest (label exposé par le runner Forgejo)
Le runner act-runner du VPS expose ubuntu-latest:docker://node:22 et
self-hosted, pas docker. Les ~20 derniers runs étaient en Canceled avec
'No matching online runner with label: docker'. L'image node:22 a déjà
openssh, git, rsync — plus besoin de l'étape Install tooling.
2026-05-27 01:01:14 +02:00

29 lines
773 B
YAML

name: Deploy info-canicule
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Configure SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
echo "${{ secrets.VPS_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
- name: Deploy on VPS
run: |
ssh deploy@vps.nocleus.com bash -se <<'EOSSH'
set -euo pipefail
cd /opt/projects/info-canicule
git fetch --prune origin main
git reset --hard origin/main
make env
docker compose up -d --build --wait
docker image prune -f
EOSSH