mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 19:07:54 +01:00
general fixes
This commit is contained in:
parent
70bc2264ba
commit
c48c28120b
13 changed files with 357 additions and 173 deletions
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
name: isogenerator-image
|
||||
name: Create Container
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
|
|
@ -21,15 +21,9 @@ jobs:
|
|||
push-image:
|
||||
name: Build and push image
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
id-token: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
# Checkout push-to-registry action GitHub repository
|
||||
- name: Checkout Push to Registry action
|
||||
87
.github/workflows/iso.yml
vendored
87
.github/workflows/iso.yml
vendored
|
|
@ -1,87 +0,0 @@
|
|||
name: Create and publish an ISO
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
tags:
|
||||
- 'v*'
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
ARCH:
|
||||
required: true
|
||||
type: string
|
||||
IMAGE_NAME:
|
||||
required: true
|
||||
type: string
|
||||
IMAGE_REPO:
|
||||
required: true
|
||||
type: string
|
||||
IMAGE_TAG:
|
||||
required: true
|
||||
type: string
|
||||
VARIANT:
|
||||
required: true
|
||||
type: string
|
||||
VERSION:
|
||||
required: true
|
||||
type: string
|
||||
WEB_UI:
|
||||
required: true
|
||||
type: string
|
||||
BUILD_REPO:
|
||||
required: false
|
||||
type: string
|
||||
default: ublue-os/isogenerator
|
||||
BUILD_REF:
|
||||
required: false
|
||||
type: string
|
||||
default: main
|
||||
|
||||
env:
|
||||
ARCH: ${{ inputs.ARCH || 'x86_64' }}
|
||||
IMAGE_NAME: ${{ inputs.IMAGE_NAME || 'base-main' }}
|
||||
IMAGE_REPO: ${{ inputs.IMAGE_REPO || 'ghcr.io/ublue-os' }}
|
||||
IMAGE_TAG: ${{ inputs.IMAGE_TAG || 'latest' }}
|
||||
VARIANT: ${{ inputs.VARIANT || 'Kinoite' }}
|
||||
VERSION: ${{ inputs.VERSION || '39' }}
|
||||
WEB_UI: ${{ inputs.WEB_UI || 'false' }}
|
||||
CURR_REPO: ${{ inputs.BUILD_REPO || github.repository }}
|
||||
CURR_REF: ${{ inputs.BUILD_REF || github.ref }}
|
||||
|
||||
jobs:
|
||||
build-and-push-iso:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Build ISO
|
||||
shell: bash
|
||||
run: |
|
||||
set -eo pipefail
|
||||
mkdir -p output
|
||||
docker run \
|
||||
--rm --privileged \
|
||||
-v ./output:/isogenerator/output \
|
||||
-e ARCH="${{ env.ARCH }}" \
|
||||
-e IMAGE_NAME="${{ env.IMAGE_NAME }}" \
|
||||
-e IMAGE_REPO="${{ env.IMAGE_REPO }}" \
|
||||
-e IMAGE_TAG="${{ env.IMAGE_TAG }}" \
|
||||
-e VARIANT="${{ env.VARIANT }}" \
|
||||
-e VERSION="${{ env.VERSION }}" \
|
||||
-e WEB_UI="${{ env.WEB_UI }}" \
|
||||
ghcr.io/ublue-os/isogenerator:latest
|
||||
|
||||
- name: Upload ISO as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.IMAGE_NAME }}-${{ env.IMAGE_TAG }}.iso
|
||||
path: output/*.iso
|
||||
if-no-files-found: error
|
||||
retention-days: 0
|
||||
compression-level: 0
|
||||
overwrite: true
|
||||
43
.github/workflows/test-iso.yml
vendored
Normal file
43
.github/workflows/test-iso.yml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: Test Generate ISO
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
tags:
|
||||
- 'v*'
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
ARCH: ${{ inputs.ARCH || 'x86_64' }}
|
||||
IMAGE_NAME: ${{ inputs.IMAGE_NAME || 'base-main' }}
|
||||
IMAGE_REPO: ${{ inputs.IMAGE_REPO || 'ghcr.io/ublue-os' }}
|
||||
IMAGE_TAG: ${{ inputs.IMAGE_TAG || 'latest' }}
|
||||
VARIANT: ${{ inputs.VARIANT || 'Kinoite' }}
|
||||
VERSION: ${{ inputs.VERSION || '39' }}
|
||||
WEB_UI: ${{ inputs.WEB_UI || 'false' }}
|
||||
CURR_REPO: ${{ inputs.BUILD_REPO || github.repository }}
|
||||
CURR_REF: ${{ inputs.BUILD_REF || github.ref }}
|
||||
|
||||
jobs:
|
||||
build-and-push-iso:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: fedora:39
|
||||
options: "--privileged"
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Build ISO
|
||||
uses: ublue-os/isogenerator
|
||||
with:
|
||||
ARCH: 'x86_64'
|
||||
IMAGE_NAME: 'base-main'
|
||||
IMAGE_REPO: 'ghcr.io/ublue-os'
|
||||
IMAGE_TAG: 'latest'
|
||||
VARIANT: 'Kinoite'
|
||||
VERSION: '39'
|
||||
WEB_UI: 'false'
|
||||
CURR_REPO: ${{ github.repository }}
|
||||
CURR_REF: ${{ github.ref }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue