ci: add GitLab build and k3s deploy pipeline

This commit is contained in:
nyan404 committed 2026-08-16 17:15:41 +03:00
1 parent c15fc81178
commit 057e5c81bd
8 files changed
+140 -11

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab-deploy
namespace: belki
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: gitlab-deploy
namespace: belki
rules:
- apiGroups: [""]
resources:
- configmaps
- events
- persistentvolumeclaims
- pods
- pods/log
- secrets
- services
verbs: [get, list, watch, create, update, patch]
- apiGroups: ["apps"]
resources:
- deployments
- deployments/status
- replicasets
- replicasets/status
verbs: [get, list, watch, create, update, patch]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: gitlab-deploy
namespace: belki
subjects:
- kind: ServiceAccount
name: gitlab-deploy
namespace: belki
roleRef:
kind: Role
name: gitlab-deploy
apiGroup: rbac.authorization.k8s.io
+2 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: belki-vk
name: belki-runtime
namespace: belki
type: Opaque
stringData:
@@ -9,4 +9,5 @@ stringData:
VK_GROUP_ID: replace-out-of-band
VK_API_VERSION: "5.199"
BELKI_DATABASE_URL: postgresql://belki:replace-out-of-band@postgres:5432/belki
POSTGRES_PASSWORD: replace-out-of-band
BELKI_ADMIN_PASSWORD: replace-out-of-band