From 1f0f5bbd58dd99f4a2810ba83ad50fbd22209187 Mon Sep 17 00:00:00 2001 From: xyny Date: Sun, 5 May 2024 16:47:04 +0300 Subject: [PATCH] feat: add initial minimal example --- .github/workflows/build-simple.yml | 35 ++++++++++++++++++++++++++++++ 00-minimal/README.md | 6 +++++ 00-minimal/build.yml | 1 + 00-minimal/recipes/recipe.yml | 24 ++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 .github/workflows/build-simple.yml create mode 100644 00-minimal/README.md create mode 120000 00-minimal/build.yml create mode 100644 00-minimal/recipes/recipe.yml diff --git a/.github/workflows/build-simple.yml b/.github/workflows/build-simple.yml new file mode 100644 index 0000000..fafc563 --- /dev/null +++ b/.github/workflows/build-simple.yml @@ -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/github-action@v1.5 + 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 }} \ No newline at end of file diff --git a/00-minimal/README.md b/00-minimal/README.md new file mode 100644 index 0000000..6e0671c --- /dev/null +++ b/00-minimal/README.md @@ -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) \ No newline at end of file diff --git a/00-minimal/build.yml b/00-minimal/build.yml new file mode 120000 index 0000000..2b34349 --- /dev/null +++ b/00-minimal/build.yml @@ -0,0 +1 @@ +../.github/workflows/build-simple.yml \ No newline at end of file diff --git a/00-minimal/recipes/recipe.yml b/00-minimal/recipes/recipe.yml new file mode 100644 index 0000000..d37c0e7 --- /dev/null +++ b/00-minimal/recipes/recipe.yml @@ -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 \ No newline at end of file