Add a first version of CI
This commit is contained in:
parent
205113bafd
commit
9b9da89233
41
.woodpecker/helmfile.yaml
Normal file
41
.woodpecker/helmfile.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- NAME: badhouseplants
|
||||||
|
ENV: badhouseplants
|
||||||
|
steps:
|
||||||
|
test:
|
||||||
|
image: ghcr.io/helmfile/helmfile:latest
|
||||||
|
commands:
|
||||||
|
- kubectl get all -A
|
||||||
|
backend_options:
|
||||||
|
kubernetes:
|
||||||
|
serviceAccountName: woodpecker-ci
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 500Mi
|
||||||
|
cpu: 200m
|
||||||
|
limits:
|
||||||
|
memory: 500Mi
|
||||||
|
cpu: 200m
|
||||||
|
build:
|
||||||
|
image: ghcr.io/helmfile/helmfile:latest
|
||||||
|
commands:
|
||||||
|
- mkdir ~/.kube
|
||||||
|
- echo $K8S_CONFIG | base64 -d > ~/.kube/config
|
||||||
|
- helmfile -e "${ENV}" diff
|
||||||
|
secrets:
|
||||||
|
- k8s_config
|
||||||
|
- sops_age_key
|
||||||
|
backend_options:
|
||||||
|
kubernetes:
|
||||||
|
serviceAccountName: woodpecker-ci
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 500Mi
|
||||||
|
cpu: 200m
|
||||||
|
limits:
|
||||||
|
memory: 500Mi
|
||||||
|
cpu: 200m
|
@ -1,5 +1,5 @@
|
|||||||
{{- if .Values.sa }}
|
{{- if .Values.sa }}
|
||||||
{{- range $sa := .Values.roles }}
|
{{- range $sa := .Values.sa }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
|
@ -13,11 +13,12 @@ bindings:
|
|||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: pipelines
|
namespace: pipelines
|
||||||
namespace: woodpecker-ci
|
name: woodpecker-ci
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: cluster-admin
|
name: cluster-admin
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
sa:
|
sa:
|
||||||
- name: woodpecker-ci
|
- name: woodpecker-ci
|
||||||
|
namespace: pipelines
|
||||||
|
Loading…
Reference in New Issue
Block a user