Use remote digest for BOOTC_DIGEST label#55
Merged
Merged
Conversation
Push the bootc image before building the disk image so that BOOTC_DIGEST reflects the registry digest after compression. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reviewer's GuideWorkflow now pushes the bootc image first, captures the remote registry digest, passes it into disk image build, and separates bootc and disk image push steps so BOOTC_DIGEST reflects the compressed registry digest. Sequence diagram for using remote BOOTC_DIGEST in disk image buildsequenceDiagram
participant GitHubActions
participant Make as make
participant Podman as podman
GitHubActions->>Make: make build-bootc-image
GitHubActions->>GitHubActions: Determine image tag (meta)
GitHubActions->>Podman: podman tag BOOTC_SRC PUSH_DEST:TAG
GitHubActions->>Podman: podman push --digestfile=/tmp/bootc-digest PUSH_DEST:TAG
GitHubActions->>Podman: podman tag BOOTC_SRC PUSH_DEST:latest
GitHubActions->>Podman: podman push PUSH_DEST:latest
GitHubActions->>GitHubActions: capture BOOTC_DIGEST from /tmp/bootc-digest
GitHubActions->>Make: make build-disk-image BOOTC_DIGEST=BOOTC_DIGEST
GitHubActions->>Podman: podman tag DISK_SRC PUSH_DEST:TAG-disk
GitHubActions->>Podman: podman push PUSH_DEST:TAG-disk
GitHubActions->>Podman: podman tag DISK_SRC PUSH_DEST:latest-disk
GitHubActions->>Podman: podman push PUSH_DEST:latest-disk
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In the Makefile's
build-disk-imagetarget, theelsebranch that reassignsBOOTC_DIGEST="$(BOOTC_DIGEST)"is effectively a no-op and can be removed by only settingBOOTC_DIGESTwhen it's empty, which will simplify the shell snippet. - Given that the workflow now always pushes the bootc image before building the disk image, consider whether the
build-disk-image: build-bootc-imagedependency is still needed, as it may trigger unnecessary rebuilds of the bootc image during disk image builds.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the Makefile's `build-disk-image` target, the `else` branch that reassigns `BOOTC_DIGEST="$(BOOTC_DIGEST)"` is effectively a no-op and can be removed by only setting `BOOTC_DIGEST` when it's empty, which will simplify the shell snippet.
- Given that the workflow now always pushes the bootc image before building the disk image, consider whether the `build-disk-image: build-bootc-image` dependency is still needed, as it may trigger unnecessary rebuilds of the bootc image during disk image builds.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Push the bootc image before building the disk image so that BOOTC_DIGEST reflects the registry digest after compression.
Summary by Sourcery
Push the bootc image before building the disk image so the BOOTC_DIGEST label uses the registry-compressed digest.
Enhancements:
CI: