Skip to content

Commit 1f0f5bb

Browse files
committed
feat: add initial minimal example
1 parent a930597 commit 1f0f5bb

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

.github/workflows/build-simple.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: bluebuild
2+
on:
3+
push:
4+
paths-ignore: # don't rebuild if only documentation has changed
5+
- "**.md"
6+
7+
pull_request:
8+
workflow_dispatch: # allow manually triggering builds
9+
jobs:
10+
bluebuild:
11+
name: Build Custom Image
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
packages: write
16+
id-token: write
17+
strategy:
18+
fail-fast: false # stop GH from cancelling all matrix builds if one fails
19+
matrix:
20+
recipe:
21+
22+
# 00-minimal
23+
- folder: ./00-minimal
24+
file: recipe.yml
25+
26+
steps:
27+
# the build is fully handled by the reusable github action
28+
- name: Build Custom Image
29+
uses: blue-build/[email protected]
30+
working-directory: ${{ matrix.recipe.folder }}
31+
with:
32+
recipe: ${{ matrix.recipe.file }}
33+
cosign_private_key: ${{ secrets.SIGNING_SECRET }}
34+
registry_token: ${{ github.token }}
35+
pr_event_number: ${{ github.event.number }}

00-minimal/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Minimal example
2+
3+
This example showcases how streamlined a very minimal configuration could be by omitting configuration options.
4+
5+
- [recipe.yml](./recipes/recipe.yml)
6+
- [build.yml](./build.yml)

00-minimal/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.github/workflows/build-simple.yml

00-minimal/recipes/recipe.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: example/minimal
2+
description: minimal bluebuild example image
3+
base-image: ghcr.io/ublue-os/kinoite-main
4+
image-version: latest
5+
6+
modules:
7+
8+
- type: rpm-ostree
9+
install:
10+
- micro
11+
- zsh
12+
- playerctl
13+
remove:
14+
- firefox
15+
- firefox-langpacks
16+
17+
- type: default-flatpaks
18+
user:
19+
install:
20+
- org.mozilla.firefox
21+
- org.kde.krita
22+
- com.discordapp.Discord
23+
24+
- type: signing

0 commit comments

Comments
 (0)