feat(bot): ✨ Move background tasks to separate image.

This commit is contained in:
Nyeki.py
2024-11-01 01:52:53 -03:00
parent cd578e43bd
commit 3c7d9e193c
11 changed files with 71 additions and 32 deletions
+17
View File
@@ -0,0 +1,17 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: tasks
spec:
schedule: "* * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: tasks
image: git.nyeki.dev/payphone/payphone-tasks:latest
command: ["uv", "run", "--no-dev", "tasks.py", "flush"]
restartPolicy: OnFailure
imagePullSecrets:
- name: regcred