fedora-40: splits to two images
Some checks failed
/ build (push) Failing after 51s

This commit is contained in:
thislight 2024-07-14 14:33:29 +08:00
parent 24ee7c52fb
commit f471472693
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
5 changed files with 55 additions and 38 deletions

View file

@ -6,6 +6,7 @@ on:
branches: ['master']
paths:
- "fedora-40/**"
- "fedora-40-minimal/**"
- "shared/**"
- ".forgejo/workflows/build-fedora-40.yml"
schedule:
@ -22,12 +23,23 @@ jobs:
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
run: dnf makecache -y --releasever 40
- 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:40-minimal && \
buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs build --arch aarch64 \
--pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf:O \
--manifest code.lightstands.xyz/standcoded/fedora:40-minimal .
env:
BUILDAH_ISOLATION: chroot
- 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 \
--pid=host --ipc=host --network=host --userns=host --uts=host --squash \
--pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf:O \
--manifest code.lightstands.xyz/standcoded/fedora:40 .
env:
BUILDAH_ISOLATION: chroot
@ -35,5 +47,6 @@ jobs:
run: |
buildah login code.lightstands.xyz \
--username ${{ env.GITHUB_ACTOR }} --password ${{ secrets.PUBLICATION_TOKEN }} && \
buildah manifest push code.lightstands.xyz/standcoded/fedora:40-minimal --all && \
buildah manifest push code.lightstands.xyz/standcoded/fedora:40 --all