From d619deb55d116c07adb4a031d2216a59744e2dd0 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 25 Jul 2024 13:04:25 +0200 Subject: [PATCH] initial commit --- .gitignore | 1 + README.md | 0 app.yaml | 27 +++++++++++++++++++++++++++ woodpecker/values.yaml | 23 +++++++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 app.yaml create mode 100644 woodpecker/values.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..60d2056 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/secrets.yaml \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/app.yaml b/app.yaml new file mode 100644 index 0000000..bd28357 --- /dev/null +++ b/app.yaml @@ -0,0 +1,27 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: woodpecker + namespace: argocd +spec: + project: default + sources: + - chart: woodpecker + repoURL: https://woodpecker-ci.org/ + targetRevision: 1.5.1 + helm: + releaseName: woodpecker + valueFiles: + - $values/woodpecker/values.yaml + - repoURL: https://git.ar21.de/aaron/woodpecker-deployment.git + targetRevision: HEAD + ref: values + destination: + server: https://kubernetes.default.svc + namespace: woodpecker + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + prune: true \ No newline at end of file diff --git a/woodpecker/values.yaml b/woodpecker/values.yaml new file mode 100644 index 0000000..4d2b000 --- /dev/null +++ b/woodpecker/values.yaml @@ -0,0 +1,23 @@ +server: + ingress: + # -- Enable the ingress for the server component + enabled: true + # -- Add annotations to the ingress + annotations: + # kubernetes.io/ingress.class: nginx + kubernetes.io/tls-acme: "true" + hosts: + - host: woodpecker.ar21.de + paths: + - path: / + backend: + serviceName: woodpecker-svc + servicePort: *servicePort + statefulSet: + replicaCount: 2 + env: + WOODPECKER_ADMIN: 'aaron' + WOODPECKER_HOST: 'https://woodpecker.ar21.de' + WOODPECKER_OPEN: true + WOODPECKER_FORGEJO: true + WOODPECKER_FORGEJO_URL: https://git.ar21.de \ No newline at end of file