mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 05:51:56 +08:00
33 lines
832 B
Django/Jinja
33 lines
832 B
Django/Jinja
---
|
|
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: cron
|
|
spec:
|
|
concurrencyPolicy: Forbid
|
|
schedule: "50 * * * *"
|
|
startingDeadlineSeconds: 1800
|
|
jobTemplate:
|
|
spec:
|
|
activeDeadlineSeconds: 3600
|
|
template:
|
|
metadata:
|
|
labels:
|
|
parent: "cronjobbuild"
|
|
spec:
|
|
containers:
|
|
- name: build-english
|
|
image: image-registry.openshift-image-registry.svc:5000/docsbuilding/builder:latest
|
|
env:
|
|
- name: BUILD_ENV
|
|
value: "{{ env_short }}"
|
|
volumeMounts:
|
|
- name: build-output
|
|
mountPath: /antora/output
|
|
readOnly: false
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: build-output
|
|
persistentVolumeClaim:
|
|
claimName: docs-storage
|