mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 19:07:54 +01:00
* feat: Allow users to override secure boot key and password when using container or action * fix: follow redirects * chore: update docs * fix: added comments and removed additional \n * fix: removed defaults * fix: added conditional for adding public key * chore(ci): Added additional test for secure boot * chore(ci): fixed up workflows to match production * fix(ci): added workflow dispatch to test * fix(ci): fixed version and added IMAGE_TAG * chore(ci): changed to bluefin to test both 38 and 39 secure boot * chore(ci): added required variables to entrypoint * chore(ci): added merge_group and added paths-ignore * chore(ci): updated description * chore(ci): set to Silverblue since we are testing Bluefin * chore(ci): Fixed secure boot key not found error Received error in anaconda when check was hit, need to set as a soft failure to exit the script early without stopping anaconda installation. * chore: fixed formatting * chore: fixed whitespace * chore(ci): Removed duplicate test * chore: fix whitespace * chore(ci): fixed test and removed upload to Github Artifacts * chore: updated README * fix: set password to ublue default * fix: changed enrollment password in containerfile
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
---
|
|
name: Build Container Image
|
|
on:
|
|
merge_group:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- '*.md'
|
|
- 'LICENSE'
|
|
- 'CODEOWNERS'
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
push-image:
|
|
name: Build and push container image
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
version:
|
|
- 38
|
|
- 39
|
|
- 40
|
|
include:
|
|
- version: 39
|
|
support: latest
|
|
steps:
|
|
- name: Build image
|
|
uses: ublue-os/build-action@1.0.1
|
|
with:
|
|
image_name: isogenerator
|
|
image_variant: main
|
|
version: ${{ matrix.version }}
|
|
support: ${{ matrix.support }}
|
|
signing_key: ${{ secrets.SIGNING_SECRET }}
|
|
continue-on-error: false
|
|
|
|
check:
|
|
name: Check build successful
|
|
if: ${{ !cancelled() }}
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- push-image
|
|
steps:
|
|
- name: Exit on failure for main
|
|
if: ${{ needs.push-image.result == 'failure' || needs.push-image.result == 'skipped' }}
|
|
shell: bash
|
|
run: exit 1
|
|
- name: Exit
|
|
shell: bash
|
|
run: exit 0
|