mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
rename iso
This commit is contained in:
parent
1de35b1511
commit
ee7ad8b680
1 changed files with 2 additions and 6 deletions
8
.github/workflows/build-and-test.yml
vendored
8
.github/workflows/build-and-test.yml
vendored
|
|
@ -142,7 +142,7 @@ jobs:
|
||||||
flatpak_remote_refs_dir: /github/workspace/${{ env.FLATPAK_REMOTE_REFS_DIR }}
|
flatpak_remote_refs_dir: /github/workspace/${{ env.FLATPAK_REMOTE_REFS_DIR }}
|
||||||
secure_boot_key_url: ${{ env.SECURE_BOOT_KEY_URL }}
|
secure_boot_key_url: ${{ env.SECURE_BOOT_KEY_URL }}
|
||||||
enrollment_password: ${{ env.ENROLLMENT_PASSWORD }}
|
enrollment_password: ${{ env.ENROLLMENT_PASSWORD }}
|
||||||
iso_name: ${{ env.IMAGE_NAME }}-${{ matrix.version }}-${{ matrix.version }}.iso
|
iso_name: ${{ env.IMAGE_NAME }}-${{ matrix.version }}-${{ github.event.pull_request.number || github.ref }}.iso
|
||||||
|
|
||||||
- name: Save output
|
- name: Save output
|
||||||
id: save_output
|
id: save_output
|
||||||
|
|
@ -197,13 +197,11 @@ jobs:
|
||||||
|
|
||||||
- name: Verify ISO
|
- name: Verify ISO
|
||||||
run: |
|
run: |
|
||||||
set -e
|
|
||||||
checkisomd5 ${{ needs['build-and-push-iso']['outputs'][format('iso_name-{0}', matrix.version)] }}
|
checkisomd5 ${{ needs['build-and-push-iso']['outputs'][format('iso_name-{0}', matrix.version)] }}
|
||||||
sha256sum -c ${{ needs['build-and-push-iso']['outputs'][format('iso_name-{0}', matrix.version)] }}-CHECKSUM
|
sha256sum -c ${{ needs['build-and-push-iso']['outputs'][format('iso_name-{0}', matrix.version)] }}-CHECKSUM
|
||||||
|
|
||||||
- name: Run ISO checks
|
- name: Run ISO checks
|
||||||
run: |
|
run: |
|
||||||
set -e
|
|
||||||
mv ${{ needs['build-and-push-iso']['outputs'][format('iso_name-{0}', matrix.version)] }} deploy.iso
|
mv ${{ needs['build-and-push-iso']['outputs'][format('iso_name-{0}', matrix.version)] }} deploy.iso
|
||||||
make test-iso \
|
make test-iso \
|
||||||
ARCH=${{ env.ARCH}} \
|
ARCH=${{ env.ARCH}} \
|
||||||
|
|
@ -250,7 +248,7 @@ jobs:
|
||||||
|
|
||||||
- name: Add Kickstart and Grub options to ISO
|
- name: Add Kickstart and Grub options to ISO
|
||||||
run: |
|
run: |
|
||||||
set -e
|
mv ${{ needs['build-and-push-iso']['outputs'][format('iso_name-{0}', matrix.version)] }} deploy.iso
|
||||||
sudo mkdir /mnt/iso || true
|
sudo mkdir /mnt/iso || true
|
||||||
sudo mount -o loop deploy.iso /mnt/iso
|
sudo mount -o loop deploy.iso /mnt/iso
|
||||||
cp /mnt/iso/boot/grub2/grub.cfg grub.cfg
|
cp /mnt/iso/boot/grub2/grub.cfg grub.cfg
|
||||||
|
|
@ -285,7 +283,6 @@ jobs:
|
||||||
|
|
||||||
- name: Install the test VM
|
- name: Install the test VM
|
||||||
run: |
|
run: |
|
||||||
set -e
|
|
||||||
timeout 1h qemu-system-x86_64 -name "Anaconda" -boot d -m 4096 -cpu qemu64 -display none -cdrom test.iso -smp 2 -hda disk.qcow2 -serial telnet:localhost:4321,server=on,wait=off & QEMU_PID=$!
|
timeout 1h qemu-system-x86_64 -name "Anaconda" -boot d -m 4096 -cpu qemu64 -display none -cdrom test.iso -smp 2 -hda disk.qcow2 -serial telnet:localhost:4321,server=on,wait=off & QEMU_PID=$!
|
||||||
echo "PID: $QEMU_PID"
|
echo "PID: $QEMU_PID"
|
||||||
timeout 1m bash -c "while ! (echo > /dev/tcp/127.0.0.1/4321); do sleep 0.1; done"
|
timeout 1m bash -c "while ! (echo > /dev/tcp/127.0.0.1/4321); do sleep 0.1; done"
|
||||||
|
|
@ -299,7 +296,6 @@ jobs:
|
||||||
VM_IP: "127.0.0.1"
|
VM_IP: "127.0.0.1"
|
||||||
VM_PORT: "5555"
|
VM_PORT: "5555"
|
||||||
run: |
|
run: |
|
||||||
set -e
|
|
||||||
mkfifo vm.stdin
|
mkfifo vm.stdin
|
||||||
qemu-system-x86_64 -name "Anaconda" \
|
qemu-system-x86_64 -name "Anaconda" \
|
||||||
-m 4096 -cpu qemu64 -display none -smp 2 \
|
-m 4096 -cpu qemu64 -display none -smp 2 \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue