feat: run database seed after migrations
This commit is contained in:
@@ -18,7 +18,13 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: migrate
|
- name: migrate
|
||||||
image: gitea.infrastructure.helmholz.cloud/gitea_admin/nextgen-be:latest
|
image: gitea.infrastructure.helmholz.cloud/gitea_admin/nextgen-be:latest
|
||||||
command: ["alembic", "upgrade", "head"]
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
set -e
|
||||||
|
alembic upgrade head
|
||||||
|
python -m app.db.seed_dev
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: nextgen-be-db
|
name: nextgen-be-db
|
||||||
|
|||||||
Reference in New Issue
Block a user