Skip to content

Commit ad5efb0

Browse files
James ReillyCopilot
andcommitted
fix: use rechunk on main branch pushes (mirrors main build pattern)
rechunk is the mechanism that transfers the image from root (sudo) storage to user-accessible storage before Load Image runs. Setting rechunk: false broke Load Image with 'image not known'. Mirror the main build pattern: rechunk on non-PR events, skip on PRs. Also revert unnecessary sudo podman save|load workaround. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 98817fd commit ad5efb0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.github/workflows/build-gnome50.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
image-name: bluefin
3232
tag-suffix: "50"
3333
gnome-version: "50"
34-
rechunk: false
34+
rechunk: ${{ github.event_name != 'pull_request' }}
3535
publish: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
3636

3737
build-hwe:
@@ -42,5 +42,5 @@ jobs:
4242
tag-suffix: "50"
4343
gnome-version: "50"
4444
hwe: true
45-
rechunk: false
45+
rechunk: ${{ github.event_name != 'pull_request' }}
4646
publish: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}

.github/workflows/reusable-build-image.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,6 @@ jobs:
211211
skip_compression: true
212212
version: ${{ env.CENTOS_VERSION }}
213213

214-
- name: Copy image to rootless storage
215-
if: ${{ inputs.publish && !inputs.rechunk }}
216-
run: |
217-
sudo podman save "localhost/${IMAGE_NAME}:${DEFAULT_TAG}" | podman load
218-
219214
- name: Load Image
220215
if: ${{ inputs.publish }}
221216
id: load

0 commit comments

Comments
 (0)