Aaron Riedel
ee1b1376c4
All checks were successful
continuous-integration/drone/push Build is passing
37 lines
992 B
YAML
37 lines
992 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: surveybot
|
|
---
|
|
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: surveybot
|
|
namespace: surveybot
|
|
spec:
|
|
schedule: "00 16 * * 5"
|
|
successfulJobsHistoryLimit: 1
|
|
failedJobsHistoryLimit: 3
|
|
jobTemplate:
|
|
spec:
|
|
ttlSecondsAfterFinished: 240
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: surveybot
|
|
image: git.ar21.de/secondhemd/shbot:latest
|
|
env:
|
|
- name: SURVEY_CHANNEL
|
|
value: "1121451742983368744"
|
|
- name: MENTION_ID
|
|
value: "1121451741704093726"
|
|
- name: GUILD_ID
|
|
value: "261575556708040705"
|
|
- name: TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: surveybot-token
|
|
key: TOKEN
|
|
command: ["python", "survey.py"]
|
|
imagePullPolicy: Always
|
|
restartPolicy: Never
|