Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
629fcd2260 | ||
|
|
781ca46713 | ||
|
|
7d0e8eb800 | ||
|
|
a49f2d1055 | ||
|
|
d672afe22c | ||
|
|
f34ddf31de | ||
|
|
8a3a3cefaa | ||
|
|
c294a8e2d3 | ||
|
|
896d38fd63 | ||
|
|
9a8469db6f |
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# Beispiel für create-deploy-user.py – kopieren nach .env (wird nicht eingecheckt):
|
||||
# cp .env.example .env && chmod 600 .env
|
||||
# Laden und ausführen:
|
||||
# set -a; source .env; set +a
|
||||
# ./create-deploy-user.py --project-path owner/repo
|
||||
# Das Skript liest nur die Umgebungsvariablen; fehlen sie, wird interaktiv gefragt.
|
||||
|
||||
# authentik-API-Token (authentik → Benutzer-Einstellungen → Tokens und App-Passwörter)
|
||||
AUTHENTIK_TOKEN=
|
||||
|
||||
# Gitea-Access-Token mit Scope write:repository
|
||||
# (https://git.share-fix.de/user/settings/applications)
|
||||
GITEA_TOKEN=
|
||||
@@ -2,3 +2,4 @@ __pycache__/
|
||||
*.pyc
|
||||
.claude/
|
||||
.codegraph/
|
||||
.env
|
||||
@@ -1,11 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# requires-python = ">=3.13"
|
||||
# dependencies = [
|
||||
# "authentik-client>=2026.8.5",
|
||||
# "requests>=2.34.2",
|
||||
# ]
|
||||
# ///
|
||||
#!/usr/bin/env python3
|
||||
"""Legt in authentik einen Deploy-User für ein Gitea-Repository an und hinterlegt
|
||||
die Zugangsdaten als Gitea-Actions-Secrets/-Variablen."""
|
||||
|
||||
@@ -20,7 +13,7 @@ import authentik_client
|
||||
import requests
|
||||
from authentik_client.rest import ApiException
|
||||
|
||||
DEFAULT_AUTHENTIK_URL = "https://auth.share-fix.de/api/v3"
|
||||
DEFAULT_AUTHENTIK_URL = "https://auth.systems.cogsys.wiai.uni-bamberg.de/api/v3"
|
||||
DEFAULT_GITEA_URL = "https://git.share-fix.de"
|
||||
DEFAULT_SERVER = "H1"
|
||||
HOME_DIR_BASE = "/home"
|
||||
|
||||
Reference in new issue
Block a user