Add docsbuilding cron job
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
4179131929
commit
ddd6cc7e98
2 changed files with 29 additions and 0 deletions
|
@ -24,3 +24,7 @@
|
|||
- role: openshift/start-build
|
||||
app: docsbuilding
|
||||
buildname: builder-build
|
||||
- role: openshift/object
|
||||
app: docsbuilding
|
||||
file: cron.yml
|
||||
objectname: cron.yml
|
||||
|
|
25
roles/openshift-apps/docsbuilding/files/cron.yml
Normal file
25
roles/openshift-apps/docsbuilding/files/cron.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: build
|
||||
spec:
|
||||
concurrencyPolicy: Forbid
|
||||
schedule: "0 * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
parent: "cronjobbuild"
|
||||
spec:
|
||||
containers:
|
||||
- name: build
|
||||
image: docker-registry.default.svc:5000/docsbuilding/builder:latest
|
||||
volumeMounts:
|
||||
- name: build-output
|
||||
mountPath: /antora/output
|
||||
readOnly: false
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- name: build-output
|
||||
emptyDir: {}
|
Loading…
Add table
Add a link
Reference in a new issue