waiverdb: Update command for the new container image

This commit is contained in:
Lukas Holecek 2022-11-21 10:34:13 +01:00 committed by zlopez
parent 3228a3646a
commit c3942af631

View file

@ -1,4 +1,4 @@
---
apiVersion: v1
kind: DeploymentConfig
metadata:
@ -18,7 +18,14 @@ spec:
failurePolicy: Abort
execNewPod:
containerName: web
command: [ /bin/sh, -i, -c, "waiverdb wait-for-db && waiverdb db upgrade" ]
command:
- /bin/sh
- -c
- >-
if [ -f /app/entrypoint.sh ];
then /app/entrypoint.sh waiverdb db upgrade;
else waiverdb db upgrade;
fi
volumes:
- config-volume
- secret-volume