feat: cicd

This commit is contained in:
Max batleforc 2024-06-28 09:22:48 +02:00
parent c60410577d
commit 1ff63c3319
No known key found for this signature in database
GPG Key ID: 25D243AB4B6AC9E7

View File

@ -1,9 +1,6 @@
{{- $host_dev := printf "%s-bu-teammaker.dev.%s" .Values.image.tag .Values.ingress.host -}}
{{- $host_prod := printf "%s.%s" "bu-teammaker" .Values.ingress.host -}}
{{- $host := regexMatch "^v[0-9]+\\.[0-9]+\\.[0-9]+$" .Values.image.tag | ternary $host_prod $host_dev -}}
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
labels:
@ -17,10 +14,6 @@ spec:
selector:
matchLabels:
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
template:
metadata:
labels:
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
spec:
securityContext:
runAsUser: 1000
@ -66,9 +59,6 @@ spec:
value: "file:/appdata/bot.db"
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
mountPath: /appdata
livenessProbe:
httpGet:
path: /