Add CICD
Some checks failed
continuous-integration/drone Build is failing
Build and Release / build (push) Has been cancelled

This commit is contained in:
Yaojia Wang
2026-03-22 17:08:55 +01:00
parent b3e0efcc11
commit 4afe4aab1e
9 changed files with 232 additions and 0 deletions

29
k8s/base/drone-rbac.yaml Normal file
View File

@@ -0,0 +1,29 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: drone-deploy
namespace: xiaohongshu-mcp
rules:
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list", "patch", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: drone-deploy
namespace: xiaohongshu-mcp
subjects:
- kind: ServiceAccount
name: default
namespace: drone
- kind: ServiceAccount
name: drone
namespace: drone
- kind: ServiceAccount
name: drone-runner-drone-runner-kube
namespace: drone
roleRef:
kind: Role
name: drone-deploy
apiGroup: rbac.authorization.k8s.io