.gitea/workflows/build.yml aktualisiert

another try
This commit is contained in:
2026-06-14 19:49:11 +00:00
parent aac9d66232
commit 686c4624a3
+10 -5
View File
@@ -12,7 +12,6 @@ env:
IMAGE_DESC: "Custom Fedora bootc image" IMAGE_DESC: "Custom Fedora bootc image"
IMAGE_NAME: "${{ github.event.repository.name }}" IMAGE_NAME: "${{ github.event.repository.name }}"
DEFAULT_TAG: "stable" DEFAULT_TAG: "stable"
# Erzwingt die Verwendung von Node 24 für alle JavaScript-Actions
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
concurrency: concurrency:
@@ -23,10 +22,6 @@ jobs:
build_push: build_push:
name: Build and push image name: Build and push image
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
# WICHTIG: Diese Umgebungsvariablen lösen den "unshare"-Fehler
env:
BUILDAH_ISOLATION: chroot
STORAGE_DRIVER: vfs
permissions: permissions:
contents: read contents: read
packages: write packages: write
@@ -46,6 +41,12 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install -y buildah sudo apt-get install -y buildah
# NEU: Erzwingt vfs-Speicher für DinD-Umgebungen
- name: Configure Buildah Storage
run: |
mkdir -p ~/.config/containers
echo -e '[storage]\ndriver = "vfs"' > ~/.config/containers/storage.conf
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -94,6 +95,10 @@ jobs:
- name: Build Image (Buildah) - name: Build Image (Buildah)
id: build_image id: build_image
uses: redhat-actions/buildah-build@v2 uses: redhat-actions/buildah-build@v2
# NEU: Umgebungsvariablen direkt hier für den Build-Schritt
env:
BUILDAH_ISOLATION: chroot
STORAGE_DRIVER: vfs
with: with:
context: . context: .
containerfiles: ./Containerfile containerfiles: ./Containerfile