Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

fix: tags not properly being set in ostree remote #17

fix: tags not properly being set in ostree remote

fix: tags not properly being set in ostree remote #17

Workflow file for this run

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:pr-6
- 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