summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-live-iso.yml2
-rw-r--r--.github/workflows/build.yml6
-rw-r--r--.github/workflows/clean.yml40
3 files changed, 44 insertions, 4 deletions
diff --git a/.github/workflows/build-live-iso.yml b/.github/workflows/build-live-iso.yml
index def88be..2206038 100644
--- a/.github/workflows/build-live-iso.yml
+++ b/.github/workflows/build-live-iso.yml
@@ -67,7 +67,7 @@ jobs:
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"
+ echo "LIVE_BASE_IMAGE=ghcr.io/ublue-os/bazzite:stable-45.20261117" >> "$GITHUB_ENV"
- name: Build installer ISO payload
run: |
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5da933d..db4f0e1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -25,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.20261112' }}
+ BASE_IMAGE: ${{ vars.BASE_IMAGE || 'ghcr.io/ublue-os/bazzite-deck:stable-45.20261117' }}
FLATPAK_REMOTE_URL: ${{ vars.FLATPAK_REMOTE_URL }}
HOMEBREW_BOTTLE_DOMAIN: ${{ vars.HOMEBREW_BOTTLE_DOMAIN }}
HOMEBREW_API_DOMAIN: ${{ vars.HOMEBREW_API_DOMAIN }}
@@ -101,9 +101,9 @@ jobs:
set -euo pipefail
if [[ "${GITHUB_REF_NAME}" == "unstable" ]]; then
- BASE_IMAGE="ghcr.io/ublue-os/bazzite-deck:stable-45.20261112"
+ BASE_IMAGE="ghcr.io/ublue-os/bazzite-deck:stable-45.20261117"
else
- BASE_IMAGE="${BASE_IMAGE_VAR:-ghcr.io/ublue-os/bazzite-deck:stable-45.20261112}"
+ BASE_IMAGE="${BASE_IMAGE_VAR:-ghcr.io/ublue-os/bazzite-deck:stable-45.20261117}"
fi
echo "Using BASE_IMAGE=${BASE_IMAGE}"
echo "BASE_IMAGE=${BASE_IMAGE}" >> "$GITHUB_ENV"
diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml
new file mode 100644
index 0000000..7954c84
--- /dev/null
+++ b/.github/workflows/clean.yml
@@ -0,0 +1,40 @@
+name: Cleanup Old Images
+
+on:
+ schedule:
+ - cron: "15 0 * * 0" # 00:15 UTC every Sunday
+ workflow_dispatch:
+ inputs:
+ dry_run:
+ description: "Preview deletions without removing images"
+ required: true
+ default: true
+ type: boolean
+
+permissions: {}
+
+concurrency:
+ group: cleanup-ghcr-images
+ cancel-in-progress: false
+
+jobs:
+ cleanup-ghcr:
+ name: Clean old GHCR image versions
+ runs-on: ubuntu-latest
+ permissions:
+ packages: write
+
+ steps:
+ - name: Delete images older than 90 days
+ uses: dataaxiom/ghcr-cleanup-action@d52806a0dc70b430571a37da1fde39733ffd640f # v1.2.2
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ packages: aerocore-os
+ older-than: 90 days
+ keep-n-tagged: 7
+ keep-n-untagged: 7
+ delete-orphaned-images: true
+ # Protect the rolling channel aliases, including the current Fedora-major aliases.
+ exclude-tags: '^(stable|latest|testing|stable-[0-9]+|testing-[0-9]+)$'
+ use-regex: true
+ dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || false }}