scorecard/k8s/cron.yaml
2021-02-16 14:48:31 -05:00

28 lines
651 B
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: daily-score
spec:
schedule: "0 0 * * 0,3"
jobTemplate:
spec:
template:
spec:
containers:
- name: run-score
image: gcr.io/openssf/cron:latest
imagePullPolicy: Always
command:
- /bin/sh
- -c
- ./cron/cron.sh
env:
- name: GITHUB_AUTH_TOKEN
valueFrom:
secretKeyRef:
name: github
key: token
- name: GCS_BUCKET
value: ossf-scorecards
restartPolicy: OnFailure