apps(woodpecker): Add woodpecker CI

main
trivernis 12 months ago
parent 0357575cf9
commit 3fab6153f9
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
metadata:
name: woodpecker
resources:
- app/namespace.yaml
- app/release.yaml
- app/route.yaml

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: woodpecker
labels:
name: woodpecker

@ -0,0 +1,30 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: woodpecker
namespace: woodpecker
spec:
releaseName: woodpecker
chart:
spec:
chart: woodpecker
sourceRef:
kind: HelmRepository
name: woodpeckerci
namespace: repos
interval: 60m
install:
remediation:
retries: 3
values:
volume:
storageClassName: ebs-ssd
resources:
requests:
memory: 256Mi
limits:
memory: 512Mi
agent:
env:
WOODPECKER_BACKEND_K8S_STORAGE-CLASS: "ebs-ssd"

@ -0,0 +1,17 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: woodpecker-route
namespace: woodpecker
spec:
entryPoints:
- web
routes:
- match: Host(`ci.cluster.trivernis.dev`)
kind: Rule
middlewares:
- name: strict-security-headers
namespace: default
services:
- name: woodpecker
port: http

@ -235,3 +235,20 @@ spec:
prune: true
wait: true
timeout: 5m0s
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: apps-woodpecker
namespace: flux-system
spec:
dependsOn:
- name: repos
interval: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./apps/woodpecker
prune: true
wait: true
timeout: 5m0s

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: woodpeckerci
namespace: repos
spec:
interval: 60m
url: https://woodpecker-ci.org/
Loading…
Cancel
Save