7
0
forked from yvv/decision

ci: pipeline seed séparé (.woodpecker/seed.yml, event: manual)

Pipeline dédié au seeding DB, déclenché uniquement manuellement.
Retire le step seed du pipeline principal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-03-24 01:57:37 +01:00
parent 1842303c3b
commit 0310dcba42
2 changed files with 15 additions and 15 deletions

15
.woodpecker/seed.yml Normal file
View File

@@ -0,0 +1,15 @@
when:
- branch: main
event: manual
steps:
- name: seed
image: docker:27-cli
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/libredecision:/opt/libredecision
commands:
- |
PROJECT=$(grep '^COMPOSE_PROJECT_NAME=' /opt/libredecision/.env | cut -d= -f2)
echo "Seeding $PROJECT-backend..."
docker exec "$PROJECT-backend" python seed.py