'use client' import type { PipelineStatus } from '../types' interface SetupTabProps { pipelineStatus: PipelineStatus | null } export function SetupTab({ pipelineStatus }: SetupTabProps) { return (

Erstkonfiguration - Gitea CI/CD

Anleitung zur Einrichtung der CI/CD Pipeline mit Gitea Actions auf dem Mac Mini Server.

{/* Gitea Server Info */}

Gitea Server

Web-URL

http://macmini:3003

SSH

macmini:2222

Status

{pipelineStatus?.gitea_connected ? 'Verbunden' : 'Konfiguration erforderlich'}

{/* Implementierte Komponenten */}

Implementierte Komponenten

Komponente Pfad Beschreibung
Gitea Service docker-compose.yml Gitea 1.22 mit Actions enabled
Gitea Runner docker-compose.yml act_runner fuer Job-Ausfuehrung
SBOM Workflow .gitea/workflows/sbom.yaml 5 Jobs: generate, scan, license, upload, summary
Backend API backend/security_api.py SBOM Upload, Pipeline Status, History
Runner Config gitea/runner-config.yaml Labels: ubuntu-latest, self-hosted
{/* Setup Steps */}

Setup-Schritte

1. Gitea oeffnen
http://macmini:3003
2. Admin-Account erstellen

Username: admin, Email: admin@breakpilot.de

3. Repository erstellen

Name: breakpilot-pwa, Visibility: Private

4. Actions aktivieren

Repository Settings → Actions → Enable Repository Actions

5. Runner Token erstellen & starten
{`export GITEA_RUNNER_TOKEN=
docker compose up -d gitea-runner`}
            
6. Repository pushen
{`git remote add gitea http://macmini:3003/admin/breakpilot-pwa.git
git push gitea main`}
            
{/* Quick Links */}

Quick Links

Gitea

Git Server & CI/CD

Pipeline Actions

Workflow Runs

) }