feat: ajout d'un workflow de déploiement pour la production

This commit is contained in:
Puechberty Arthur
2026-04-23 00:16:31 +02:00
parent eff6c73af5
commit 7319bb7523
2 changed files with 24 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
name: Deploy Production
on:
push:
branches: [main]
jobs:
deploy:
runs-on: [self-hosted, linux, docker]
steps:
- name: Deploy on server
run: |
cd /srv/apps/flint
echo "Pull latest code"
git pull origin main
echo "Build & restart containers"
docker compose up -d --build --remove-orphans
echo "Cleanup old images"
docker image prune -f