From cb0e0f07cf1cf9b77ca05f113b63dd24f02acdeb Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 29 Dec 2025 20:27:43 -0600 Subject: [PATCH] Add Buildah build check --- .gitea/workflows/buildah-check.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/buildah-check.yaml diff --git a/.gitea/workflows/buildah-check.yaml b/.gitea/workflows/buildah-check.yaml new file mode 100644 index 0000000..6dddf35 --- /dev/null +++ b/.gitea/workflows/buildah-check.yaml @@ -0,0 +1,25 @@ +name: Check Buildah Build (Safe) +on: [push, workflow_dispatch] + +jobs: + buildah-build: + runs-on: macos-m1 + steps: + - name: Install Dependencies + run: | + if [ -f /etc/alpine-release ]; then + # Install buildah and fuse-overlayfs for rootless builds + apk add --no-cache nodejs git buildah fuse-overlayfs + fi + + - name: Checkout + uses: actions/checkout@v4 + + - name: Build with Buildah + run: | + echo "FROM alpine" > Dockerfile + echo "RUN echo 'Buildah build successful'" >> Dockerfile + + # Buildah needs some storage configuration tweaks for running inside a container + # We use the 'vfs' driver which is slow but works reliably inside containers without special privileges + buildah build --storage-driver=vfs -t test-image .