Files
fedora-infra_ansible/roles/openshift-apps/docsbuilding/templates/cron.yml
Kevin Fenzi 618d5f4553 docsbuilding: Allow more time for pod to start.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-06-17 23:17:06 +00:00

31 lines
782 B
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: build
spec:
concurrencyPolicy: Forbid
schedule: "0 * * * *"
jobTemplate:
spec:
template:
metadata:
labels:
parent: "cronjobbuild"
spec:
containers:
- name: build
image: docker-registry.default.svc:5000/docsbuilding/builder:latest
env:
- name: BUILD_ENV
value: "{{ env_short }}"
volumeMounts:
- name: build-output
mountPath: /antora/output
readOnly: false
restartPolicy: Never
startingDeadlineSeconds: 600
volumes:
- name: build-output
persistentVolumeClaim:
claimName: docs-storage