fedora-40: use self-hosted image to build
Some checks failed
/ build (push) Failing after 1m34s

This commit is contained in:
thislight 2024-07-14 15:21:29 +08:00
parent 4e9e561660
commit aa55afa648
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
2 changed files with 7 additions and 9 deletions

View file

@ -17,10 +17,8 @@ jobs:
build: build:
runs-on: linux-lg runs-on: linux-lg
container: container:
image: fedora:40 image: code.lightstands.xyz/standcoded/fedora:40
steps: steps:
- name: Install Tools
run: 'dnf install -y --setopt install_weak_deps=False nodejs git buildah qemu-user-static qemu-user-binfmt fuse-overlayfs --exclude container-selinux'
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Fulfill Package Manager Cache - name: Fulfill Package Manager Cache
@ -28,17 +26,17 @@ jobs:
- name: Build Minimal Images - name: Build Minimal Images
run: | run: |
cd fedora-40-minimal && \ cd fedora-40-minimal && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs manifest create code.lightstands.xyz/standcoded/fedora:40-minimal && \ buildah --cgroup-manager=cgroupfs manifest create code.lightstands.xyz/standcoded/fedora-minimal:40 && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs build --arch aarch64 \ buildah --cgroup-manager=cgroupfs build --arch aarch64 \
--pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf \ --pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf \
--manifest code.lightstands.xyz/standcoded/fedora:40-minimal . --manifest code.lightstands.xyz/standcoded/fedora-minimal:40 .
env: env:
BUILDAH_ISOLATION: chroot BUILDAH_ISOLATION: chroot
- name: Build Images - name: Build Images
run: | run: |
cd fedora-40 && \ cd fedora-40 && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs manifest create code.lightstands.xyz/standcoded/fedora:40 && \ buildah --cgroup-manager=cgroupfs manifest create code.lightstands.xyz/standcoded/fedora:40 && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs build --arch aarch64 \ buildah --cgroup-manager=cgroupfs build --arch aarch64 \
--pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf \ --pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf \
--manifest code.lightstands.xyz/standcoded/fedora:40 . --manifest code.lightstands.xyz/standcoded/fedora:40 .
env: env:

View file

@ -1,4 +1,4 @@
FROM code.lightstands.xyz/standcoded/fedora:40-minimal FROM code.lightstands.xyz/standcoded/fedora-minimal:40
RUN dnf install -y --setopt install_weak_deps=False sqlite-devel binutils RUN dnf install -y --setopt install_weak_deps=False sqlite-devel binutils