From 9ae252e844e6f71a57765ab944f3ed621ce39483 Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Fri, 8 Jun 2018 20:13:44 +0000 Subject: [PATCH] try a cron Signed-off-by: Rick Elrod --- .../release-monitoring/files/cron.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/openshift-apps/release-monitoring/files/cron.yml diff --git a/roles/openshift-apps/release-monitoring/files/cron.yml b/roles/openshift-apps/release-monitoring/files/cron.yml new file mode 100644 index 0000000000..e597332a01 --- /dev/null +++ b/roles/openshift-apps/release-monitoring/files/cron.yml @@ -0,0 +1,22 @@ +apiVersion: batch/v1beta1 +kind: CronJob +metadata: + name: anitya +spec: + schedule: "10 */12 * * *" + jobTemplate: + spec: + template: + metadata: + labels: + parent: "cronjobanitya" + spec: + containers: + - name: release-monitoring-web + image: release-monitoring/release-monitoring-web:latest + image: perl + command: ["/usr/share/anitya/anitya_cron.py"] + env: + - name: ANITYA_WEB_CONFIG + value: /etc/anitya/anitya.cfg + restartPolicy: OnFailure