diff --git a/helm/api/templates/deployment.yaml b/helm/api/templates/deployment.yaml index 9701ddd..264ef13 100644 --- a/helm/api/templates/deployment.yaml +++ b/helm/api/templates/deployment.yaml @@ -71,3 +71,8 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} + + lifecycle: + postStart: + exec: + command: ["/bin/sh", "-c", "node ace migration:run --force"] diff --git a/helm/api/values.yaml b/helm/api/values.yaml index 1af9cf8..1524e9b 100644 --- a/helm/api/values.yaml +++ b/helm/api/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: repository: gitlab.polytech.umontpellier.fr:5050/beep/file/api/file-beep-api - pullPolicy: IfNotPresent + pullPolicy: Always tag: 056b6d57 port: 80 configMapName: backend-config