Files
fedora-infra_ansible/roles/openshift-apps/bodhi/templates/critpathcron.yml.j2
Kevin Fenzi dc3fda7f45 bodhi/openshift: fix missing /
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-02-06 09:59:07 -08:00

42 lines
1.2 KiB
Django/Jinja

---
apiVersion: batch/v1
kind: CronJob
metadata:
name: fedora-bodhi-critpathcron
spec:
concurrencyPolicy: Forbid
schedule: "10 3 * * *"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
startingDeadlineSeconds: 300
jobTemplate:
spec:
backoffLimit: 0
template:
metadata:
labels:
parent: "cronjobbuild"
spec:
containers:
- name: critpath
image: image-registry.openshift-image-registry.svc:5000/bodhi/bodhi-critpathcron:latest
command: ["/bin/bash", "-c"]
args:
- |
cd /tmp
git clone --depth 1 --single-branch https://forge.fedoraproject.org/releng/tooling
/tmp/tooling/quality-assurance/critpath/critpath.py all --srpm --with-coreos
env:
- name: BUILD_ENV
value: "{{ env_short }}"
volumeMounts:
- name: bodhi-critpath
mountPath: /bodhi-critpath
readOnly: false
restartPolicy: Never
activeDeadlineSeconds: 900
volumes:
- name: bodhi-critpath
persistentVolumeClaim:
claimName: bodhi-critpath-storage