Skip to content

Commit

Permalink
fix: streamline recipe, update workflow, document including empty obj…
Browse files Browse the repository at this point in the history
…ects (#46)

* fix: streamline recipe, update workflow, document including empty objects

* feat: only run one build at a time #43
  • Loading branch information
xynydev authored Dec 6, 2024
1 parent 6913849 commit e9910c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: bluebuild
on:
schedule:
- cron: "00 06 * * *" # build at 06:00 UTC every day
# (20 minutes after last ublue images start building)
- cron:
"00 06 * * *" # build at 06:00 UTC every day
# (20 minutes after last ublue images start building)
push:
paths-ignore: # don't rebuild if only documentation has changed
- "**.md"

pull_request:
workflow_dispatch: # allow manually triggering builds
concurrency:
# only run one build at a time
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
bluebuild:
name: Build Custom Image
Expand All @@ -21,17 +26,17 @@ jobs:
fail-fast: false # stop GH from cancelling all matrix builds if one fails
matrix:
recipe:
# !! Add your recipes here
# !! Add your recipes here
- recipe.yml
steps:
# the build is fully handled by the reusable github action
# the build is fully handled by the reusable github action
- name: Build Custom Image
uses: blue-build/github-action@v1.7
uses: blue-build/github-action@v1.8
with:
recipe: ${{ matrix.recipe }}
cosign_private_key: ${{ secrets.SIGNING_SECRET }}
registry_token: ${{ github.token }}
pr_event_number: ${{ github.event.number }}

# enabled by default, disable if your image is small and you want faster builds
# enabled by default, disable if your image is small and you want faster builds
maximize_build_space: true
8 changes: 1 addition & 7 deletions recipes/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,12 @@ modules:
notify: true # Send notification after install/uninstall is finished (true/false)
system:
# If no repo information is specified, Flathub will be used by default
# repo-url: https://dl.flathub.org/repo/flathub.flatpakrepo
repo-name: flathub
repo-title: "Flathub (system-wide)" # Optional; this sets the remote's user-facing name in graphical frontends like GNOME Software
install:
- org.mozilla.firefox
- org.gnome.Loupe
# - one.ablaze.floorp//lightning # This is an example of flatpak which has multiple branches in selection (flatpak//branch).
# Flatpak runtimes are not supported (like org.winehq.Wine//stable-23.08),
# only normal flatpak applications are (like Floorp Lightning web browser in this example).
# Installing different branches of the same Flatpak is not supported.
remove:
- org.gnome.eog
user: {} # Also add Flathub user repo, but no user packages

- type: signing # this sets up the proper policy & signing files for signed images to work fully

0 comments on commit e9910c0

Please sign in to comment.