Forgejo-Login renovate/renovate, Zugangsdaten nach Start anzeigen

This commit is contained in:
Demo committed 2026-10-11 19:54:06 +02:00
1 parent 94b4174ef2
commit 9196e0da4a
3 files changed
+11 -7

No files matched your search

+9 -5
View File
@@ -2,6 +2,8 @@
# und speichert ein frisches Access-Token in .forgejo-token (wird von renovate-update.ps1 gelesen).
$ts = Get-Date -Format 'yyyy-MM-dd-HH-mm-ss-fff'
$tokenFile = Join-Path $PSScriptRoot '.forgejo-token'
$username = 'renovate'
$password = 'renovate'
# 1. Container starten – beim ersten Mal anlegen.
# ENABLE_PUSH_CREATE_USER: ein Repo wird beim ersten "git push" automatisch angelegt.
@@ -21,11 +23,13 @@ do {
} until ($ready)
# 2. Bot-User anlegen (Fehler ignorieren, falls er schon existiert) und ein frisches Access-Token erzeugen
podman exec -u git renovate-forgejo forgejo admin user create --admin --username renovate `
--password renovate-local-123 --email renovate@localhost --must-change-password=false 2>$null | Out-Null
podman exec -u git renovate-forgejo forgejo admin user create --admin --username $username `
--password $password --email renovate@localhost --must-change-password=false 2>$null | Out-Null
$token = podman exec -u git renovate-forgejo forgejo admin user generate-access-token `
--username renovate --token-name "renovate-$ts" --scopes all --raw
--username $username --token-name "renovate-$ts" --scopes all --raw
Set-Content -Path $tokenFile -Value $token -NoNewline
Write-Host 'Forgejo läuft: http://localhost:3000 (Login: renovate / renovate-local-123)' -ForegroundColor Cyan
Write-Host "Token gespeichert in $tokenFile"
Write-Host "`nForgejo läuft: http://localhost:3000" -ForegroundColor Cyan
Write-Host " Benutzer: $username"
Write-Host " Passwort: $password"
Write-Host " Token gespeichert in $tokenFile"