.gitea/workflows/build.yaml aktualisiert
Some checks failed
.NET Docker Build & Push / build_and_push (push) Failing after 13m47s

This commit is contained in:
Henry Trumme
2025-12-08 19:25:41 +01:00
parent c2eed93e7c
commit 7ea8e784d2

View File

@@ -9,9 +9,13 @@ on:
jobs:
build_and_push:
runs-on: ubuntu-latest # Dein Runner mappt das ja auf Debian Bookworm
container:
image: catthehacker/ubuntu:act-latest # Optional, Standard-Umgebung für den Job selbst
runs-on: ubuntu-latest
# --- WICHTIG: Das hier hat gefehlt ---
permissions:
packages: write
contents: read
# -------------------------------------
steps:
- name: Check out the repo
@@ -21,7 +25,7 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: gitea.penry.de # <-- ANPASSEN (ohne https://)
registry: gitea.penry.de
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
@@ -30,11 +34,9 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.penry.de/${{ github.repository }} # <-- ANPASSEN
images: gitea.penry.de/${{ github.repository }}
# Der eigentliche Build.
# Da wir ein Multi-Stage Dockerfile haben, führt dieser Schritt
# automatisch "dotnet restore" und "dotnet publish" aus.
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
@@ -43,5 +45,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# Wichtig für Raspberry Pi Builds, falls du Cross-Platform bauen willst (optional)
# Da dein Runner auf dem Pi läuft, baut er automatisch ARM64.
# Wir erzwingen es hier aber, damit im Metadaten-Tag alles stimmt.
platforms: linux/arm64