pull odoo addons in initcontainer
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Brunner 2022-08-05 22:21:56 +02:00
parent ae0d4df105
commit 3f74fb0b11
1 changed files with 20 additions and 0 deletions

View File

@ -16,6 +16,22 @@ spec:
labels: labels:
app: odoo app: odoo
spec: spec:
initContainers:
- name: git-cloner
image: alpine/git
args:
- clone
- --branch
- "15.0"
- --single-branch
- --depth
- "1"
- --
- https://git.tbrnt.ch/tobru/odoo-addons.git
- /data
volumeMounts:
- mountPath: /data
name: odoo-addons
containers: containers:
- env: - env:
- name: HOST - name: HOST
@ -57,9 +73,13 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /var/lib/odoo - mountPath: /var/lib/odoo
name: odoo-data name: odoo-data
- mountPath: /mnt/extra-addons
name: odoo-addons
hostname: web hostname: web
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: odoo-data - name: odoo-data
persistentVolumeClaim: persistentVolumeClaim:
claimName: odoo-data claimName: odoo-data
- name: odoo-addons
emptyDir: {}