mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
42 lines
1.2 KiB
Django/Jinja
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
|