Attempt AMD64 cross-build
Some checks failed
Some checks failed
This commit is contained in:
@@ -23,4 +23,18 @@ jobs:
|
||||
# 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
|
||||
# We use '--isolation=chroot' to avoid cgroup permission issues inside the runner container
|
||||
buildah build --storage-driver=vfs --isolation=chroot -t test-image .
|
||||
buildah build --storage-driver=vfs --isolation=chroot -t test-image-arm64 .
|
||||
|
||||
- name: Build for AMD64 (Cross-Platform Check)
|
||||
run: |
|
||||
echo "FROM alpine" > Dockerfile.amd64
|
||||
echo "RUN echo 'AMD64 Build successful'" >> Dockerfile.amd64
|
||||
|
||||
# Attempt to build for linux/amd64
|
||||
# This requires QEMU to be configured on the host or installed in the runner
|
||||
buildah build \
|
||||
--storage-driver=vfs \
|
||||
--isolation=chroot \
|
||||
--platform linux/amd64 \
|
||||
-f Dockerfile.amd64 \
|
||||
-t test-image-amd64 .
|
||||
|
||||
Reference in New Issue
Block a user