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 apiVersion: apps/v1
kind: Deployment kind: StatefulSet
metadata: metadata:
name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb" name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
labels: labels:
@ -17,10 +14,6 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb" app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
template:
metadata:
labels:
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
spec: spec:
securityContext: securityContext:
runAsUser: 1000 runAsUser: 1000
@ -66,9 +59,6 @@ spec:
value: "file:/appdata/bot.db" value: "file:/appdata/bot.db"
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
mountPath: /appdata
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /