Skip to content

Commit 9ebe05f

Browse files
committed
update default treatments.json to contain multiple references and move collectstatic after the migrations in qmra deployment
1 parent 9ff86af commit 9ebe05f

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

infra/helm/qmra/templates/deployment.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ spec:
1919
{{- include "app.labels" . | nindent 8 }}
2020
spec:
2121
initContainers:
22-
- name: move-static
23-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
24-
envFrom:
25-
- configMapRef:
26-
name: {{ .Values.configmap_name }}
27-
volumeMounts:
28-
- name: static
29-
mountPath: {{ .Values.static.mount_path }}
30-
command: [ python, manage.py, collectstatic, --noinput ]
3122
- name: migrate
3223
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
3324
envFrom:
@@ -46,6 +37,15 @@ spec:
4637
- name: qmra-default
4738
mountPath: {{ .Values.qmra_default.mount_path }}
4839
command: [ python, manage.py, migrate, --database, qmra ]
40+
- name: move-static
41+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
42+
envFrom:
43+
- configMapRef:
44+
name: { { .Values.configmap_name } }
45+
volumeMounts:
46+
- name: static
47+
mountPath: { { .Values.static.mount_path } }
48+
command: [ python, manage.py, collectstatic, --noinput ]
4949
containers:
5050
- name: {{ .Chart.Name }}
5151
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

0 commit comments

Comments
 (0)