gitea/manifests/common/job.yaml

30 lines
620 B
YAML
Raw Normal View History

2024-05-10 09:36:32 +00:00
---
apiVersion: batch/v1
kind: Job
metadata:
name: migrate
2024-05-10 09:36:32 +00:00
spec:
template:
spec:
restartPolicy: Never
containers:
- name: migrate
2024-05-10 09:36:32 +00:00
image: "$IMAGEAPP"
command:
- gitea
- migrate
2024-05-10 09:36:32 +00:00
volumeMounts:
- name: config
mountPath: /etc/gitea/app.ini
subPath: app.ini
- name: secrets
mountPath: /etc/gitea/secrets/
volumes:
- name: config
configMap:
name: gitea
2024-05-10 09:36:32 +00:00
- name: secrets
secret:
secretName: gitea
2024-05-10 09:36:32 +00:00
backoffLimit: 4