openshift docsbuilding separate translated docs build
This commit is contained in:
parent
8b1aeda37a
commit
9ccc671e68
2 changed files with 33 additions and 1 deletions
|
@ -0,0 +1,32 @@
|
|||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: cron-translated
|
||||
spec:
|
||||
concurrencyPolicy: Forbid
|
||||
schedule: "0 * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
parent: "cronjobbuild"
|
||||
spec:
|
||||
containers:
|
||||
- name: build-translated
|
||||
image: docker-registry.default.svc:5000/docsbuilding/builder:latest
|
||||
env:
|
||||
- name: BUILD_ENV
|
||||
value: "{{ env_short }}"
|
||||
- name: BUILD_LANGS
|
||||
value: "translated"
|
||||
volumeMounts:
|
||||
- name: build-output
|
||||
mountPath: /antora/output
|
||||
readOnly: false
|
||||
restartPolicy: Never
|
||||
startingDeadlineSeconds: 600
|
||||
volumes:
|
||||
- name: build-output
|
||||
persistentVolumeClaim:
|
||||
claimName: docs-storage
|
|
@ -13,7 +13,7 @@ spec:
|
|||
parent: "cronjobbuild"
|
||||
spec:
|
||||
containers:
|
||||
- name: build
|
||||
- name: build-english
|
||||
image: docker-registry.default.svc:5000/docsbuilding/builder:latest
|
||||
env:
|
||||
- name: BUILD_ENV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue