| |
@@ -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
|
| |
I'd like to separate the Fedora Docs build into two:
I've already tweaked the build script to do this based on environment variables. Now I need to have two builders in OpenShift.
This is my first PR in this repo, I hope I've done everything for this to work. :)