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 .