Full deployment - bump versions and copy database
All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/labhelper) (push) Successful in 1m9s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/labhelper-data-loader) (push) Successful in 11s

- Bump labhelper-data-loader to 0.010
- Bump labhelper to 0.032
- Copy cleaned database to data-loader/preload.sqlite3
This commit is contained in:
2025-12-29 00:56:04 +01:00
parent 0eeedaff97
commit d28c13d339
2 changed files with 6 additions and 5 deletions

View File

@@ -18,16 +18,16 @@ spec:
fsGroupChangePolicy: "OnRootMismatch"
initContainers:
- name: loader
image: git.baumann.gr/adebaumann/labhelper-data-loader:0.009
image: git.baumann.gr/adebaumann/labhelper-data-loader:0.010
securityContext:
runAsUser: 0
command: [ "sh","-c","if [ ! -f /data/db.sqlite3 ] || [ ! -s /data/db.sqlite3 ]; then cp preload/preload.sqlite3 /data/db.sqlite3 && echo 'Database copied from preload'; else echo 'Existing database preserved'; fi && python manage.py migrate thumbnail --run-syncdb && mkdir -p /data/media/cache /data/media/things && chmod -R 775 /data/media && ls -la /data/db.sqlite3 && exit 0" ]
command: [ "sh","-c","if [ ! -f /data/db.sqlite3 ] || [ ! -s /data/db.sqlite3 ]; then cp preload/preload.sqlite3 /data/db.sqlite3 && echo 'Database copied from preload'; else echo 'Existing database preserved'; fi" ]
volumeMounts:
- name: data
mountPath: /data
containers:
- name: web
image: git.baumann.gr/adebaumann/labhelper:0.031
image: git.baumann.gr/adebaumann/labhelper:0.032
imagePullPolicy: Always
ports:
- containerPort: 8000