.gitea/workflows/build.yml aktualisiert
maybe last try
This commit is contained in:
@@ -1,27 +1,11 @@
|
||||
name: Build container image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '05 12 * * 2,5'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
IMAGE_DESC: "Custom Fedora bootc image"
|
||||
IMAGE_NAME: "${{ github.event.repository.name }}"
|
||||
DEFAULT_TAG: "stable"
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build_push:
|
||||
name: Build and push image
|
||||
runs-on: ubuntu-24.04
|
||||
# Hier sind alle Variablen vereint, damit der Runner sie korrekt übernimmt
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
||||
BUILDAH_ISOLATION: chroot
|
||||
STORAGE_DRIVER: vfs
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
@@ -39,13 +23,13 @@ jobs:
|
||||
- name: Install Buildah
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y buildah
|
||||
sudo apt-get install -y buildah fuse-overlayfs
|
||||
|
||||
# NEU: Erzwingt vfs-Speicher für DinD-Umgebungen
|
||||
# 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
|
||||
echo -e '[storage]\ndriver = "vfs"\n[storage.options]\nmount_program = "/usr/bin/fuse-overlayfs"' > ~/.config/containers/storage.conf
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -95,10 +79,6 @@ jobs:
|
||||
- name: Build Image (Buildah)
|
||||
id: build_image
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
# NEU: Umgebungsvariablen direkt hier für den Build-Schritt
|
||||
env:
|
||||
BUILDAH_ISOLATION: chroot
|
||||
STORAGE_DRIVER: vfs
|
||||
with:
|
||||
context: .
|
||||
containerfiles: ./Containerfile
|
||||
|
||||
Reference in New Issue
Block a user