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:
app: odoo
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:
- env:
- name: HOST
@ -57,9 +73,13 @@ spec:
volumeMounts:
- mountPath: /var/lib/odoo
name: odoo-data
- mountPath: /mnt/extra-addons
name: odoo-addons
hostname: web
restartPolicy: Always
volumes:
- name: odoo-data
persistentVolumeClaim:
claimName: odoo-data
- name: odoo-addons
emptyDir: {}