blob: 26e7647db76ec475d50ef4925f2baddb316a6ca6 [file] [log] [blame]
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: periodic-trigger-nightly
spec:
schedule: "0 5 * * *"
concurrencyPolicy: "Forbid"
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: periodic-trigger
image: gcr.io/skia-public/periodic-trigger:2019-10-16T15_04_52Z-borenet-398b354-clean
command: ["/usr/local/bin/periodic-trigger"]
args:
- "--logtostderr"
- "--project=skia-public"
- "--trigger=nightly"
volumeMounts:
- name: skia-task-scheduler-sa
mountPath: /var/secrets/google
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
volumes:
- name: skia-task-scheduler-sa
secret:
secretName: task-scheduler