Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Split stable and testing builds apart #271

Merged
merged 3 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/build-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Zeliblue Stable
on:
schedule:
- cron:
"00 06 * * *" # build at 06:00 UTC every day
# (20 minutes after last ublue images start building)
pull_request:
branches:
- main
paths-ignore: # don't rebuild if only documentation has changed
- "**.md"
workflow_dispatch: # allow manually triggering builds

jobs:
build_gnome:
name: Zeliblue GNOME
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
recipe: gnome/zeliblue.yml
build_plasma:
name: Zeliblue Plasma
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
recipe: plasma/zeliblue-kinoite.yml
27 changes: 27 additions & 0 deletions .github/workflows/build-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Zeliblue Testing
on:
schedule:
- cron:
"00 06 * * *" # build at 06:00 UTC every day
# (20 minutes after last ublue images start building)
push:
branches:
- main
paths-ignore: # don't rebuild if only documentation has changed
- "**.md"
pull_request:
workflow_dispatch: # allow manually triggering builds

jobs:
build_gnome:
name: Zeliblue GNOME Testing
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
recipe: gnome/zeliblue-testing.yml
build_plasma:
name: Zeliblue COSMIC Testing
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
recipe: cosmic/zeliblue-cosmic.yml
43 changes: 0 additions & 43 deletions .github/workflows/build.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Reusable Build and Push
on:
workflow_call:
inputs:
recipe:
description: "Recipes to build"
required: true
type: string

jobs:
bluebuild:
name: Build Custom Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
# the build is fully handled by the reusable github action
- name: Build Custom Image
uses: blue-build/[email protected]
with:
recipe: ${{ inputs.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
maximize_build_space: false