mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 20:04:32 +07:00
feat: install Woodpecker CI
This commit is contained in:
parent
4673f91558
commit
5bf9c03cf8
@ -25,3 +25,10 @@
|
||||
- key: token
|
||||
length: 32
|
||||
special: false
|
||||
|
||||
# Woodpecker
|
||||
- name: woodpecker.agent
|
||||
data:
|
||||
- key: secret
|
||||
length: 32
|
||||
special: false
|
||||
|
7
platform/woodpecker/Chart.yaml
Normal file
7
platform/woodpecker/Chart.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: v2
|
||||
name: woodpecker
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
- name: woodpecker
|
||||
version: 1.0.3
|
||||
repository: https://woodpecker-ci.org
|
22
platform/woodpecker/templates/secret.yaml
Normal file
22
platform/woodpecker/templates/secret.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: woodpecker-secret
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: global-secrets
|
||||
data:
|
||||
- secretKey: WOODPECKER_GITEA_CLIENT
|
||||
remoteRef:
|
||||
key: gitea.woodpecker
|
||||
property: client_id
|
||||
- secretKey: WOODPECKER_GITEA_SECRET
|
||||
remoteRef:
|
||||
key: gitea.woodpecker
|
||||
property: client_secret
|
||||
- secretKey: WOODPECKER_AGENT_SECRET
|
||||
remoteRef:
|
||||
key: woodpecker.agent
|
||||
property: secret
|
30
platform/woodpecker/values.yaml
Normal file
30
platform/woodpecker/values.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
woodpecker:
|
||||
agent:
|
||||
replicaCount: 2
|
||||
env:
|
||||
WOODPECKER_BACKEND_K8S_STORAGE_RWX: false
|
||||
# Agents will spawn pods to run workflow steps using the
|
||||
# Kubernetes backend instead of running them directly on
|
||||
# the agent pod, so we can run many workflows per agent.
|
||||
WOODPECKER_MAX_WORKFLOWS: 10
|
||||
server:
|
||||
env:
|
||||
WOODPECKER_HOST: https://ci.khuedoan.com
|
||||
WOODPECKER_WEBHOOK_HOST: http://woodpecker-server.woodpecker
|
||||
WOODPECKER_GITEA: true
|
||||
WOODPECKER_GITEA_URL: https://git.khuedoan.com
|
||||
WOODPECKER_OPEN: true
|
||||
WOODPECKER_ADMIN: gitea_admin
|
||||
ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
ingressClassName: nginx
|
||||
hosts:
|
||||
- host: &host ci.khuedoan.com
|
||||
paths:
|
||||
- path: /
|
||||
tls:
|
||||
- secretName: woodpecker-tls-certificate
|
||||
hosts:
|
||||
- *host
|
@ -181,6 +181,7 @@ def main() -> None:
|
||||
]
|
||||
|
||||
gitea_oauth_apps = [
|
||||
{'name': 'woodpecker', 'redirect_uri': f"https://{client.NetworkingV1Api().read_namespaced_ingress('woodpecker-server', 'woodpecker').spec.rules[0].host}/authorize"}
|
||||
]
|
||||
|
||||
kanidm_groups = [
|
||||
|
Loading…
Reference in New Issue
Block a user