1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 19:07:54 +01:00

separate tests

This commit is contained in:
Jason N. 2024-04-08 10:21:10 -04:00
parent 67c9098ddc
commit a483dc92a4
5 changed files with 227 additions and 32 deletions

View file

@ -18,16 +18,11 @@ on:
suffix:
required: false
type: string
secrets:
RH_REPO:
required: true
RH_ENT:
required: true
jobs:
load_vars:
name: Load Variables
uses: ./.github/workflows/build_vars.yml
uses: ./.github/workflows/build_vars_rhel.yml
build_iso:
name: Build ISO
@ -45,10 +40,6 @@ jobs:
fail-fast: false
matrix:
version: ${{ fromJson(needs.load_vars.outputs.BUILD_VERSIONS) }}
include:
- version: 8
image_tag: 39
rhel: true
steps:
- name: Checkout
uses: actions/checkout@v4
@ -118,15 +109,6 @@ jobs:
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Get UBI Subs
if: matrix.rhel == true
uses: actions/checkout@v4
with:
repository: ${{ secrets.RH_REPO }}
ssh-key: ${{ secrets.RH_ENT }}
persist-credentials: false
path: ubi
- name: Build ISO
uses: ./
id: build
@ -134,7 +116,7 @@ jobs:
arch: ${{ needs.load_vars.outputs.ARCH }}
image_name: ${{ needs.load_vars.outputs.IMAGE_NAME }}
image_repo: ${{ needs.load_vars.outputs.IMAGE_REPO }}
image_tag: ${{ matrix.image_tag || matrix.version }}
image_tag: ${{ matrix.version }}
version: ${{ matrix.version }}
variant: ${{ needs.load_vars.outputs.VARIANT }}
flatpak_remote_refs: ${{ inputs.flatpaks_refs }}
@ -142,8 +124,7 @@ jobs:
secure_boot_key_url: ${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }}
enrollment_password: ${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }}
iso_name: build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}${{ inputs.suffix && format('-{0}', inputs.suffix || '') }}.iso
secrets_dir: ${{ matrix.rhel && format('{0}/ubi', github.workspace) || '' }}
repos: ${{ matrix.rhel && '/etc/yum.repos.d/redhat.repo' || '/etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora-updates.repo' }}
repos: '/etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora-updates.repo'
- name: Upload ISO as artifact
id: upload