mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
fix changes
This commit is contained in:
parent
96df7ee5fd
commit
e8f1fd3c04
1 changed files with 13 additions and 15 deletions
28
.github/workflows/build-and-test.yml
vendored
28
.github/workflows/build-and-test.yml
vendored
|
|
@ -67,11 +67,9 @@ jobs:
|
||||||
version:
|
version:
|
||||||
- 38
|
- 38
|
||||||
- 39
|
- 39
|
||||||
|
outputs:
|
||||||
|
iso_name: ${{ steps.build.outputs.iso_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set Environment Variables
|
|
||||||
run: |
|
|
||||||
echo "ISO_NAME=${{ env.IMAGE_NAME }}-${{ matrix.VERSION }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
@ -101,14 +99,16 @@ jobs:
|
||||||
variant: ${{ env.VARIANT }}
|
variant: ${{ env.VARIANT }}
|
||||||
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.ISO_NAME }}
|
iso_name: ${{ env.IMAGE_NAME }}-${{ env.IMAGE_TAG }}-${{ matrix.version }}.iso
|
||||||
|
|
||||||
- name: Upload ISO as artifact
|
- name: Upload ISO as artifact
|
||||||
id: upload
|
id: upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.ISO_NAME }}.iso
|
name: ${{ steps.build.outputs.iso_name }}
|
||||||
path: ${{ steps.build.outputs.output-directory }}
|
path: |
|
||||||
|
${{ steps.build.outputs.iso_name }}
|
||||||
|
${{ steps.build.outputs.iso_name }}-CHECKSUM
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 0
|
retention-days: 0
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
@ -127,17 +127,13 @@ jobs:
|
||||||
- 38
|
- 38
|
||||||
- 39
|
- 39
|
||||||
steps:
|
steps:
|
||||||
- name: Set Environment Variables
|
|
||||||
run: |
|
|
||||||
echo "ISO_NAME=${{ env.IMAGE_NAME }}-${{ matrix.VERSION }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Ensure qemu is installed
|
- name: Ensure qemu is installed
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y qemu qemu-utils xorriso unzip qemu-system-x86 netcat socat jq isomd5sum ansible make
|
sudo apt-get install -y qemu qemu-utils xorriso unzip qemu-system-x86 netcat socat jq isomd5sum ansible make coreutils
|
||||||
|
|
||||||
- name: Create disk
|
- name: Create disk
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -146,14 +142,16 @@ jobs:
|
||||||
- name: Download generated ISO
|
- name: Download generated ISO
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.ISO_NAME }}.iso
|
name: ${{ needs.build-and-push-iso.outputs.iso_name }}
|
||||||
|
|
||||||
- name: Verify ISO
|
- name: Verify ISO
|
||||||
run: checkisomd5 ${{ env.ISO_NAME }}.iso
|
run: |
|
||||||
|
checkisomd5 ${{ needs.build-and-push-iso.outputs.iso_name }}
|
||||||
|
sha256sum -c ${{ needs.build-and-push-iso.outputs.iso_name }}-CHECKSUM
|
||||||
|
|
||||||
- name: Run ISO checks
|
- name: Run ISO checks
|
||||||
run: |
|
run: |
|
||||||
mv ${{ env.ISO_NAME }}.iso deploy.iso
|
mv ${{ needs.build-and-push-iso.outputs.iso_name }} deploy.iso
|
||||||
make test-iso VERSION=${{ matrix.version }}
|
make test-iso VERSION=${{ matrix.version }}
|
||||||
|
|
||||||
- name: Add Kickstart and Grub options to ISO
|
- name: Add Kickstart and Grub options to ISO
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue