Skip to content

Commit

Permalink
feat: rechunk images into smaller parts
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Sep 19, 2024
1 parent 5937fd0 commit 97f6a32
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 52 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/build-39-aurora.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Aurora 39
on:
pull_request:
branches:
- main
- testing
paths-ignore:
- '**.md'
- 'system_files/silverblue/**'
schedule:
- cron: '41 5 * * 0' # 5:41 UTC Weekly on Sunday
workflow_dispatch:
# name: Aurora 39
# on:
# pull_request:
# branches:
# - main
# - testing
# paths-ignore:
# - '**.md'
# - 'system_files/silverblue/**'
# schedule:
# - cron: '41 5 * * 0' # 5:41 UTC Weekly on Sunday
# workflow_dispatch:

jobs:
build:
name: build
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
brand_name: aurora
fedora_version: 39
# jobs:
# build:
# name: build
# uses: ./.github/workflows/reusable-build.yml
# secrets: inherit
# with:
# brand_name: aurora
# fedora_version: 39
54 changes: 27 additions & 27 deletions .github/workflows/build-40-aurora.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Aurora 40
on:
merge_group:
pull_request:
branches:
- main
- testing
paths-ignore:
- '**.md'
- 'system_files/silverblue/**'
push:
branches:
- main
paths-ignore:
- '**.md'
- 'system_files/silverblue/**'
schedule:
- cron: '40 4 * * *' # 4:40 UTC everyday
workflow_dispatch:
# name: Aurora 40
# on:
# merge_group:
# pull_request:
# branches:
# - main
# - testing
# paths-ignore:
# - '**.md'
# - 'system_files/silverblue/**'
# push:
# branches:
# - main
# paths-ignore:
# - '**.md'
# - 'system_files/silverblue/**'
# schedule:
# - cron: '40 4 * * *' # 4:40 UTC everyday
# workflow_dispatch:

jobs:
build:
name: build
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
with:
brand_name: aurora
fedora_version: 40
# jobs:
# build:
# name: build
# uses: ./.github/workflows/reusable-build.yml
# secrets: inherit
# with:
# brand_name: aurora
# fedora_version: 40
24 changes: 19 additions & 5 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:
image_flavor:
- main
- nvidia
- asus
- asus-nvidia
- surface
- surface-nvidia
# - asus
# - asus-nvidia
# - surface
# - surface-nvidia
base_name:
- ${{ inputs.brand_name }}
- ${{ inputs.brand_name }}-dx
# - ${{ inputs.brand_name }}-dx
fedora_version:
- ${{ inputs.fedora_version }}
exclude:
Expand Down Expand Up @@ -293,6 +293,20 @@ jobs:
kernel_suffix: ${{ env.KERNEL_SUFFIX }}
strip: false

- name: Check Pre Rechunk
run:
podman image ls

- name: Rechunk Image
uses: hhd-dev/rechunk@main
with:
ref: ${{ steps.build_image.outputs.image }}@{{ steps.generate-tags.outputs.DEFAULT_TAG }}
skip_compression: 'true'

- name: Check Post Rechunk
run:
podman image ls

# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
# https://github.com/macbre/push-to-ghcr/issues/12
- name: Lowercase Registry
Expand Down

0 comments on commit 97f6a32

Please sign in to comment.