Skip to content

Commit

Permalink
feat: add initial minimal example
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed May 5, 2024
1 parent a930597 commit 1f0f5bb
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-simple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: bluebuild
on:
push:
paths-ignore: # don't rebuild if only documentation has changed
- "**.md"

pull_request:
workflow_dispatch: # allow manually triggering builds
jobs:
bluebuild:
name: Build Custom Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false # stop GH from cancelling all matrix builds if one fails
matrix:
recipe:

# 00-minimal
- folder: ./00-minimal
file: recipe.yml

steps:
# the build is fully handled by the reusable github action
- name: Build Custom Image
uses: blue-build/[email protected]
working-directory: ${{ matrix.recipe.folder }}
with:
recipe: ${{ matrix.recipe.file }}
cosign_private_key: ${{ secrets.SIGNING_SECRET }}
registry_token: ${{ github.token }}
pr_event_number: ${{ github.event.number }}
6 changes: 6 additions & 0 deletions 00-minimal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Minimal example

This example showcases how streamlined a very minimal configuration could be by omitting configuration options.

- [recipe.yml](./recipes/recipe.yml)
- [build.yml](./build.yml)
1 change: 1 addition & 0 deletions 00-minimal/build.yml
24 changes: 24 additions & 0 deletions 00-minimal/recipes/recipe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: example/minimal
description: minimal bluebuild example image
base-image: ghcr.io/ublue-os/kinoite-main
image-version: latest

modules:

- type: rpm-ostree
install:
- micro
- zsh
- playerctl
remove:
- firefox
- firefox-langpacks

- type: default-flatpaks
user:
install:
- org.mozilla.firefox
- org.kde.krita
- com.discordapp.Discord

- type: signing

0 comments on commit 1f0f5bb

Please sign in to comment.