Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Merge branch 'main' into enable-f41-surface-builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Nov 2, 2024
2 parents 5bebcef + 87cd090 commit 78fa75f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cleanup-old-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Cleanup Old Images
on:
schedule:
- cron: "15 0 * * *" # 0015 UTC everyday
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

jobs:
delete-older-than-90:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete Images Older Than 90 Days
uses: dataaxiom/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
packages: asus-kernel,bazzite-kernel,coreos-stable-kernel,coreos-testing-kernel,fsync-ba-kernel,fsync-kernel,main-kernel,surface-kernel
older-than: 90 days
delete-orphaned-images: true
keep-n-tagged: 7
keep-n-untagged: 7
10 changes: 7 additions & 3 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- main
paths-ignore:
- '.github/workflows/cleanup*.yml'

env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
Expand Down Expand Up @@ -54,9 +56,11 @@ jobs:
kernel_flavor: fsync-ba
- fedora_version: 39
kernel_flavor: bazzite
- fedora_version: 40
kernel_flavor: bazzite
- fedora_version: 41
kernel_flavor: coreos-stable
- fedora_version: 41
- fedora_version: 40
kernel_flavor: coreos-testing

steps:
Expand Down Expand Up @@ -148,7 +152,7 @@ jobs:
;;
"bazzite")
latest="$(curl "https://api.github.com/repos/hhd-dev/kernel-bazzite/releases/latest" )"
linux=$(echo -E "$latest" | jq -r '.assets[].name' | grep -E 'kernel-.*.rpm' | grep "fc${{ matrix.fedora_version }}" | head -1 | sed "s/kernel-//g" | sed "s/.rpm//g" )
linux=$(echo -E "$latest" | jq -r '.assets[].name' | grep -E 'kernel-.*.rpm' | grep "fc${{ matrix.fedora_version }}.x86_64" | head -1 | sed "s/kernel-//g" | sed "s/.rpm//g" )
build_tag=$(echo -E $latest | jq -r '.tag_name')
;;
"surface")
Expand Down Expand Up @@ -333,7 +337,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

# Sign container
- uses: sigstore/cosign-installer@v3.6.0
- uses: sigstore/cosign-installer@v3.7.0
if: github.event_name != 'pull_request'

- name: Sign container image
Expand Down

0 comments on commit 78fa75f

Please sign in to comment.