Give drone persistent database

This commit is contained in:
Julius 2022-05-30 13:14:15 +02:00
parent 259b78b92d
commit 6577838ade
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
2 changed files with 10 additions and 1 deletions

View file

@ -39,3 +39,11 @@ spec:
remoteRef: remoteRef:
key: k8s/drone key: k8s/drone
property: gitea-server property: gitea-server
- secretKey: DRONE_DATABASE_DRIVER
remoteRef:
key: k8s/drone
property: drone-db-driver
- secretKey: DRONE_DATABASE_DATASOURCE
remoteRef:
key: k8s/drone
property: drone-db-url

View file

@ -24,7 +24,7 @@ in {
host all all fd42:8db7:2e6b:8e9b:216:3eff::/96 trust host all all fd42:8db7:2e6b:8e9b:216:3eff::/96 trust
''; '';
ensureDatabases = ensureDatabases =
[ "gitea" "vault" "vaultwarden" "authentik" "umami" ]; [ "gitea" "vault" "vaultwarden" "authentik" "umami" "drone" ];
ensureUsers = [ ensureUsers = [
{ {
name = "gitea"; name = "gitea";
@ -43,6 +43,7 @@ in {
ensurePermissions = { "DATABASE \"authentik\"" = "ALL PRIVILEGES"; }; ensurePermissions = { "DATABASE \"authentik\"" = "ALL PRIVILEGES"; };
} }
(user "umami") (user "umami")
(user "drone")
]; ];
enableTCPIP = true; enableTCPIP = true;