ci: run livemedia-creator directly in runner image (drop mock)
mock --init fails on repo GPG signature verification in the runner container. The container is already fedora:44 with anaconda/lorax installed, so the mock chroot adds nothing but a failing GPG wall. Run dnf-installed lorax-lmc-novirt/pykickstart/livecd-tools and livemedia-creator directly in the job container; artifacts now live under build/ in the workspace.
This commit is contained in:
@@ -48,47 +48,30 @@ jobs:
|
||||
- name: Install Python deps
|
||||
run: pip install -r cook/requirements.txt
|
||||
|
||||
- name: Initialize mock
|
||||
run: |
|
||||
mock -r fedora-${{ env.FEDORA_VERSION }}-x86_64 --init
|
||||
|
||||
- name: Install required packages
|
||||
run: |
|
||||
mock -r fedora-${{ env.FEDORA_VERSION }}-x86_64 --install lorax-lmc-novirt vim-minimal pykickstart livecd-tools
|
||||
- name: Install build tools
|
||||
run: dnf -y install lorax-lmc-novirt pykickstart livecd-tools
|
||||
|
||||
- name: Generate dishes
|
||||
run: |
|
||||
cd cook
|
||||
make all
|
||||
|
||||
- name: Copy configuration file to mock
|
||||
run: |
|
||||
mock -r fedora-${{ env.FEDORA_VERSION }}-x86_64 --copyin cook/dishes/${{ env.KICKSTART_FILE }}.cfg /builddir
|
||||
|
||||
- name: Build ISO with livemedia-creator
|
||||
run: |
|
||||
mock -r fedora-${{ env.FEDORA_VERSION }}-x86_64 --shell --enable-network --isolation=simple << 'EOF'
|
||||
cd /builddir
|
||||
livemedia-creator --ks ${{ env.KICKSTART_FILE }}.cfg --no-virt --resultdir /var/lmc --project phyllomeos --make-iso --volid phyllomeos --iso-only --iso-name ${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso --releasever ${{ env.FEDORA_VERSION }} --macboot
|
||||
EOF
|
||||
livemedia-creator --ks cook/dishes/${{ env.KICKSTART_FILE }}.cfg --no-virt --resultdir build --project phyllomeos --make-iso --volid phyllomeos --iso-only --iso-name ${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso --releasever ${{ env.FEDORA_VERSION }} --macboot
|
||||
|
||||
- name: Upload ISO as artifact
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso
|
||||
path: /var/lib/mock/fedora-${{ env.FEDORA_VERSION }}-x86_64/root/var/lmc/${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso
|
||||
path: build/${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Publish ISO as release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: https://git.phyllo.me/devops/action-gh-release@v2
|
||||
with:
|
||||
files: /var/lib/mock/fedora-${{ env.FEDORA_VERSION }}-x86_64/root/var/lmc/${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso
|
||||
files: build/${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Cleanup mock environment
|
||||
if: always()
|
||||
run: |
|
||||
mock -r fedora-${{ env.FEDORA_VERSION }}-x86_64 --clean
|
||||
Reference in New Issue
Block a user