ci: use self-hosted image to build
Some checks failed
/ build (push) Failing after 6m18s

This commit is contained in:
thislight 2024-07-14 16:14:21 +08:00
parent 8febe54523
commit 6b926bc125
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

View file

@ -17,10 +17,8 @@ jobs:
build:
runs-on: linux-lg
container:
image: fedora:40
image: code.lightstands.xyz/standcoded/fedora:40
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
uses: actions/checkout@v3
- name: Fulfill Package Manager Cache
@ -28,8 +26,8 @@ jobs:
- name: Build Minimal Images
run: |
cd fedora-40-minimal && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --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 manifest create code.lightstands.xyz/standcoded/fedora-minimal:40 && \
buildah build --arch aarch64 \
--pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf \
--manifest code.lightstands.xyz/standcoded/fedora-minimal:40 .
env:
@ -37,8 +35,8 @@ jobs:
- name: Build Images
run: |
cd fedora-40 && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --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 manifest create code.lightstands.xyz/standcoded/fedora:40 && \
buildah build --arch aarch64 \
--pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf \
--manifest code.lightstands.xyz/standcoded/fedora:40 .
env: