From 56456b015b66884d02a947658ec5f0eb00c3852f Mon Sep 17 00:00:00 2001 From: thislight Date: Sat, 13 Jul 2024 20:49:43 +0800 Subject: [PATCH] ci: try fix build --- .forgejo/workflows/build-fedora-40.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build-fedora-40.yml b/.forgejo/workflows/build-fedora-40.yml index bea48ba..7bad170 100644 --- a/.forgejo/workflows/build-fedora-40.yml +++ b/.forgejo/workflows/build-fedora-40.yml @@ -19,15 +19,20 @@ jobs: image: fedora:40 steps: - name: Install Tools - run: 'dnf install -y --setopt install_weak_deps=False nodejs git buildah qemu-user-static' + run: 'dnf install -y --setopt install_weak_deps=False \ + nodejs git buildah qemu-user-static fuse-overlayfs' - name: Checkout uses: actions/checkout@v3 - name: Build Images run: | cd fedora-40 && \ - buildah manifest create code.lightstands.xyz/standcoded/fedora:40 && \ - buildah build --arch amd64 --manifest code.lightstands.xyz/standcoded/fedora:40 . && \ - buildah build --arch aarch64 --manifest code.lightstands.xyz/standcoded/fedora:40 . + buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs manifest create code.lightstands.xyz/standcoded/fedora:40 && \ + buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs build --arch amd64 \ + --pid=host --ipc=host --network=host --userns=host --uts=host --security-opt unmask=/proc --squash \ + --manifest code.lightstands.xyz/standcoded/fedora:40 . && \ + buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs build --arch aarch64 \ + --pid=host --ipc=host --network=host --userns=host --uts=host --security-opt unmask=/proc --squash \ + --manifest code.lightstands.xyz/standcoded/fedora:40 . - name: Push Images run: | buildah login code.lightstands.xyz \