blob: 4db40affb342c69d88f08e49bdea55a4e049af7b [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-01-09T20_03_55Z-borenet-d3424a1-clean
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