Compare commits

...

4 commits

Author SHA1 Message Date
1c3ebe5d81
chore(deployment): fix permissions
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-03-13 19:09:21 +01:00
c16f9aa534
chore(k8s): adjust files for yamllint rules
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-03-13 18:51:32 +01:00
1068609bbe
chore(ci): add yamllint 2025-03-13 18:51:29 +01:00
503a857e2c
chore(deployment): switch to rootless container 2025-03-13 18:39:32 +01:00
7 changed files with 52 additions and 14 deletions

13
.woodpecker.yaml Normal file
View file

@ -0,0 +1,13 @@
---
labels:
backend: kubernetes
steps:
- name: linting
image: cytopia/yamllint:latest
commands:
- yamllint -f colored -s .
when:
- event:
- push
- manual
- pull_request

12
.yamllint Normal file
View file

@ -0,0 +1,12 @@
---
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
extends: default
rules:
line-length: disable
indentation:
indent-sequences: consistent

View file

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -21,8 +22,8 @@ spec:
app: forgejo-pod
spec:
containers:
- image: codeberg.org/forgejo/forgejo:10.0.1
imagePullPolicy: Always
- image: codeberg.org/forgejo/forgejo:10.0.1-rootless
imagePullPolicy: IfNotPresent
env:
- name: USER_UID
value: "1000"
@ -39,6 +40,14 @@ spec:
volumeMounts:
- mountPath: "/data"
name: forgejo-pv-storage
initContainers:
- name: fix-permissions
image: busybox
imagePullPolicy: IfNotPresent
command: ["sh", "-c", "chown -R 1000:1000 /mnt"]
volumeMounts:
- mountPath: "/mnt"
name: forgejo-pv-storage
volumes:
- name: forgejo-pv-storage
persistentVolumeClaim:

View file

@ -1,3 +1,4 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:

View file

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:

View file

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:

View file

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata: