Skip to content

Commit

Permalink
ci: Split stable and testing builds apart (#271)
Browse files Browse the repository at this point in the history
Splits stable and testing builds apart so that only the `testing` tags
are updated when the `main` branch is, and `stable` updates only once
per day.

Closes #270
  • Loading branch information
zelikos authored Oct 13, 2024
2 parents 3c5d69e + 8d97599 commit d3dd874
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 43 deletions.
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

0 comments on commit d3dd874

Please sign in to comment.