summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-11-13 15:09:33 +0800
committertranch <tranch.xiao@gmail.com>2026-11-13 15:09:33 +0800
commitf273f285f546173a4a9abf61eee0ec8b83e09ad7 (patch)
treeb252a21c3fdc3c8c4f1fde7c3a4eb220efbf9424 /.github/workflows/build.yml
parent0e52c0f8da6da518c00fd95edd6443b2bd1528a3 (diff)
parent81b85a89fcbdf960a126c3a70c3a1c3dbd94633a (diff)
downloadAeroCore-OS-f273f285f546173a4a9abf61eee0ec8b83e09ad7.tar.gz
AeroCore-OS-f273f285f546173a4a9abf61eee0ec8b83e09ad7.zip
Merge unstable into testingtesting-45.20261113
Bring in the validated Fedora 45 Live installer fixes and align both image bases with Bazzite stable 45.20261112. Retain testing history while resolving version pin conflicts.
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml43
1 files changed, 30 insertions, 13 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 34cbf97..5da933d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -6,6 +6,7 @@ on:
- main
- testing
- testing-candidate
+ - unstable
#schedule:
# - cron: '05 10 * * *' # 10:05am UTC everyday
workflow_dispatch:
@@ -24,7 +25,7 @@ env:
IMAGE_LOGO_URL: ${{ vars.IMAGE_LOGO_URL || 'https://avatars.githubusercontent.com/u/120078124?s=200&v=4' }}
DEFAULT_TAG: ${{ vars.DEFAULT_TAG || 'stable' }}
BIB_IMAGE: ${{ vars.BIB_IMAGE || 'quay.io/centos-bootc/bootc-image-builder:latest' }}
- BASE_IMAGE: ${{ vars.BASE_IMAGE || 'ghcr.io/ublue-os/bazzite-deck:stable-45.20261105' }}
+ BASE_IMAGE: ${{ vars.BASE_IMAGE || 'ghcr.io/ublue-os/bazzite-deck:stable-45.20261112' }}
FLATPAK_REMOTE_URL: ${{ vars.FLATPAK_REMOTE_URL }}
HOMEBREW_BOTTLE_DOMAIN: ${{ vars.HOMEBREW_BOTTLE_DOMAIN }}
HOMEBREW_API_DOMAIN: ${{ vars.HOMEBREW_API_DOMAIN }}
@@ -95,15 +96,28 @@ jobs:
- name: Generate Version and Tags
id: gen-version
env:
- BASE_IMAGE: ${{ vars.BASE_IMAGE || 'ghcr.io/ublue-os/bazzite-deck:stable-45.20261105' }}
+ BASE_IMAGE_VAR: ${{ vars.BASE_IMAGE }}
run: |
set -euo pipefail
+ if [[ "${GITHUB_REF_NAME}" == "unstable" ]]; then
+ BASE_IMAGE="ghcr.io/ublue-os/bazzite-deck:stable-45.20261112"
+ else
+ BASE_IMAGE="${BASE_IMAGE_VAR:-ghcr.io/ublue-os/bazzite-deck:stable-45.20261112}"
+ fi
+ echo "Using BASE_IMAGE=${BASE_IMAGE}"
+ echo "BASE_IMAGE=${BASE_IMAGE}" >> "$GITHUB_ENV"
+
sudo podman pull "${BASE_IMAGE}"
FEDORA_VERSION=$(sudo podman run --rm --entrypoint /usr/bin/rpm "${BASE_IMAGE}" -E %fedora)
VERSION_BASE="${FEDORA_VERSION}.$(date +%Y%m%d)"
- if [[ "${GITHUB_REF_NAME}" == "testing-candidate" ]]; then
+ if [[ "${GITHUB_REF_NAME}" == "unstable" ]]; then
+ DEFAULT_TAG="unstable"
+ VERSION_TAG="unstable-${VERSION_BASE}"
+ VERSION_PRETTY_PREFIX="Unstable"
+ IMAGE_BRANCH="unstable"
+ elif [[ "${GITHUB_REF_NAME}" == "testing-candidate" ]]; then
DEFAULT_TAG="testing-candidate"
VERSION_TAG="testing-candidate-${VERSION_BASE}"
VERSION_PRETTY_PREFIX="Testing candidate"
@@ -129,11 +143,14 @@ jobs:
VERSION_TAG="${VERSION_TAG}.${build}"
fi
- VERSION_BASE_PRETTY="${VERSION_TAG#testing-candidate-}"
+ VERSION_BASE_PRETTY="${VERSION_TAG#unstable-}"
+ VERSION_BASE_PRETTY="${VERSION_BASE_PRETTY#testing-candidate-}"
VERSION_BASE_PRETTY="${VERSION_BASE_PRETTY#testing-}"
VERSION_PRETTY="${VERSION_PRETTY_PREFIX} (F${VERSION_BASE_PRETTY})"
- if [[ "${GITHUB_REF_NAME}" == "testing-candidate" ]]; then
+ if [[ "${GITHUB_REF_NAME}" == "unstable" ]]; then
+ ALIAS_TAGS="${VERSION_TAG} unstable unstable-${FEDORA_VERSION}"
+ elif [[ "${GITHUB_REF_NAME}" == "testing-candidate" ]]; then
ALIAS_TAGS="${VERSION_TAG} testing-candidate testing-candidate-${FEDORA_VERSION}"
elif [[ "${GITHUB_REF_NAME}" == "testing" ]]; then
ALIAS_TAGS="${VERSION_TAG} testing testing-${FEDORA_VERSION}"
@@ -162,7 +179,6 @@ jobs:
id: build-image
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BASE_IMAGE: ${{ vars.BASE_IMAGE || 'ghcr.io/ublue-os/bazzite-deck:stable-45.20261105' }}
FLATPAK_REMOTE_URL: ${{ vars.FLATPAK_REMOTE_URL }}
HOMEBREW_BOTTLE_DOMAIN: ${{ vars.HOMEBREW_BOTTLE_DOMAIN }}
HOMEBREW_API_DOMAIN: ${{ vars.HOMEBREW_API_DOMAIN }}
@@ -218,7 +234,7 @@ jobs:
- name: Install Syft
id: setup-syft
if: github.event_name != 'pull_request'
- uses: anchore/sbom-action/download-syft@3ad7283483fc7af8ff2b4ea19663c2d5ca935e26 # v0.24.2
+ uses: anchore/sbom-action/download-syft@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3
with:
syft-version: v1.44.0
@@ -243,14 +259,14 @@ jobs:
# They publish default-branch builds and manual testing branch builds.
- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
- if: github.event_name != 'pull_request' && (github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing' || github.ref_name == 'testing-candidate')
+ if: github.event_name != 'pull_request' && (github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing' || github.ref_name == 'testing-candidate' || github.ref_name == 'unstable')
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push To GHCR
- if: github.event_name != 'pull_request' && (github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing' || github.ref_name == 'testing-candidate')
+ if: github.event_name != 'pull_request' && (github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing' || github.ref_name == 'testing-candidate' || github.ref_name == 'unstable')
id: push-image
env:
ALIAS_TAGS: ${{ steps.gen-build-tags.outputs.alias_tags }}
@@ -267,7 +283,7 @@ jobs:
- name: Install ORAS
if: github.event_name != 'pull_request'
- uses: oras-project/setup-oras@1d808f7d7f6995cc68b7bf507bfe5c5446e1dc9d # v2.0.1
+ uses: oras-project/setup-oras@005458ad77f1c8facd38a094e4af2e69e5607ff4 # v2.0.2
- name: Upload RPM SBOM
if: github.event_name != 'pull_request'
@@ -291,14 +307,14 @@ jobs:
# to consume. For more details, review the image signing section of the README.
- name: Install Cosign
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
- if: github.event_name != 'pull_request' && (github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing' || github.ref_name == 'testing-candidate')
+ if: github.event_name != 'pull_request' && (github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing' || github.ref_name == 'testing-candidate' || github.ref_name == 'unstable')
# https://github.com/containers/container-libs/issues/388
with:
cosign-release: 'v2.6.3'
- name: Sign container image
id: sign-image
- if: github.event_name != 'pull_request' && (github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing' || github.ref_name == 'testing-candidate')
+ if: github.event_name != 'pull_request' && (github.ref_name == github.event.repository.default_branch || github.ref_name == 'testing' || github.ref_name == 'testing-candidate' || github.ref_name == 'unstable')
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
@@ -313,7 +329,8 @@ jobs:
if: github.event_name != 'pull_request' &&
(github.ref_name == github.event.repository.default_branch ||
github.ref_name == 'testing' ||
- github.ref_name == 'testing-candidate')
+ github.ref_name == 'testing-candidate' ||
+ github.ref_name == 'unstable')
permissions:
contents: write
packages: read