Add Buildah build check
Some checks failed
Some checks failed
This commit is contained in:
25
.gitea/workflows/buildah-check.yaml
Normal file
25
.gitea/workflows/buildah-check.yaml
Normal file
@@ -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 .
|
||||||
Reference in New Issue
Block a user