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

+1 -1
View File
@@ -32,7 +32,7 @@ Damit Renovate Branches und PRs erstellen kann, braucht es einen Git-Server –
.\script\forgejo-reset.ps1 # Forgejo komplett zurücksetzen (alle Repos, PRs, Token weg) und neu starten
```
- `forgejo-up.ps1` startet Forgejo (`http://localhost:3000`, Login `renovate` / `renovate-local-123`),
- `forgejo-up.ps1` startet Forgejo (`http://localhost:3000`, Login `renovate` / `renovate`),
legt den Bot-User an und speichert ein frisches Access-Token in `script/.forgejo-token`.
- `renovate-update.ps1` kennt Forgejo nur über Endpoint, Repo-Name (`renovate/renovate-test`) und `.forgejo-token`. Es pusht `main`
(das Repo wird beim ersten Push automatisch angelegt), lässt Renovate laufen und holt die Branches als
+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"
+1 -1
View File
@@ -39,5 +39,5 @@ if ($renovateExitCode -ne 0) { Pop-Location; throw 'Renovate fehlgeschlagen' }
git -c credential.helper= fetch -q --prune $gitUrl '+refs/heads/renovate/*:refs/remotes/forgejo/renovate/*'
Write-Host "`nNeuer Branch:" -ForegroundColor Cyan
git branch -r --list "forgejo/renovate/$ts-*"
Write-Host "PRs: $endpoint/$repo/pulls (Login: renovate / renovate-local-123)"
Write-Host "PRs: $endpoint/$repo/pulls (Login: renovate / renovate)"
Pop-Location