diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-11-14 12:48:56 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-11-14 12:48:56 +0800 |
| commit | 977a1e6fb81dfc264fa1e5d87652a37508fedaf8 (patch) | |
| tree | b252a21c3fdc3c8c4f1fde7c3a4eb220efbf9424 /.github/workflows | |
| parent | 3cef8477d730e8d630e11f05ba171242730fff80 (diff) | |
| parent | f273f285f546173a4a9abf61eee0ec8b83e09ad7 (diff) | |
| download | AeroCore-OS-977a1e6fb81dfc264fa1e5d87652a37508fedaf8.tar.gz AeroCore-OS-977a1e6fb81dfc264fa1e5d87652a37508fedaf8.zip | |
Merge testing-45.20261113 into main45.20261114
Promote the validated Fedora 45 Live installer and system image changes.
Keep the tested Bazzite stable 45.20261112 base for the stable rebuild.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build-live-iso.yml | 7 | ||||
| -rw-r--r-- | .github/workflows/build.yml | 39 |
2 files changed, 32 insertions, 14 deletions
diff --git a/.github/workflows/build-live-iso.yml b/.github/workflows/build-live-iso.yml index c1142f2..def88be 100644 --- a/.github/workflows/build-live-iso.yml +++ b/.github/workflows/build-live-iso.yml @@ -29,9 +29,6 @@ jobs: IMAGE_NAME: ${{ vars.IMAGE_NAME || github.event.repository.name }} IMAGE_TAG: ${{ inputs.image_tag || 'latest' }} ISO_FILE_TAG: ${{ github.ref_name == 'testing' && 'testing' || (inputs.image_tag || 'latest') }} - # Keep these aligned with the Fedora major used by the target bazzite-deck base image. - LIVE_BASE_IMAGE: quay.io/fedora/fedora-kinoite:45 - FEDORA_VERSION: "45" OSTREE_IMAGE_REF: ${{ vars.OSTREE_IMAGE_REF }} steps: @@ -67,6 +64,10 @@ jobs: - name: Pull AeroCore install image run: | sudo podman pull "${IMAGE_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}" + fedora_version="$(sudo podman run --rm --network none --entrypoint /usr/bin/rpm "${IMAGE_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}" -E %fedora)" + [[ "${fedora_version}" =~ ^[0-9]+$ ]] || { echo "Invalid Fedora version: ${fedora_version}" >&2; exit 1; } + [[ "${fedora_version}" == 45 ]] || { echo "Expected Fedora 45 payload, got ${fedora_version}" >&2; exit 1; } + echo "LIVE_BASE_IMAGE=ghcr.io/ublue-os/bazzite:stable-45.20261112" >> "$GITHUB_ENV" - name: Build installer ISO payload run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7222e07..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 }} @@ -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 }} @@ -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 |
