continuous deploy - service account and gitea workflow

This commit is contained in:
Márcio Fernandes
2026-03-20 13:36:48 +00:00
parent 23c4b440ee
commit 249b1fb567
22 changed files with 275 additions and 106 deletions

View File

@@ -10,8 +10,9 @@ Using [NextCloud](https://nextcloud.com/)
- [preview generator](#preview-generator)
- [repair tree](#repair-tree)
- [delete file locks](#delete-file-locks)
- [Setup](#setup)
- [Requirements - infra](#requirements---infra)
- [Setup and Deploy](#setup-and-deploy)
- [App](#app)
- [Infra](#infra)
- [mariadb database](#mariadb-database)
## command
@@ -61,21 +62,45 @@ su -s /bin/bash www-data -c "php occ files:repair-tree"
DELETE FROM oc_file_locks WHERE 1;
```
## Setup
## Setup and Deploy
- deploy mariadb
- nextcloud helm chart
### App
**Security context:**
This script is intended to be executed only by lowprivilege deployment identities, such as the **continuousdeploy** ServiceAccount or an application maintainer with equivalent permissions.
```bash
./ops-scripts/apply-app.sh
```
## Requirements - infra
**Responsibilities:**
- Database deployment
- Persistent Volume Claims (storage.limbosolutions.com)
- Nextcloud Helm chart deployment
- Backup job deployment
**Requirements:**
- [infra](#infra)
### Infra
**Security context:**
This script requires elevated clusterlevel permissions and must be executed only by platform maintainers, not by the continuousdeploy identity.
```bash
./ops-scripts/apply-infra.sh
```
**Responsibilities:**
- Ingress controller deployment
- Persistent storage provisioning (storage.limbosolutions.com)
- services accounts:
- Continuous deploy - Deployment RBAC (ServiceAccount + Role + RoleBinding)
## mariadb database
**Connect to maria db:**