ci: Add some build details to image labels as per OCI#39025
Conversation
WalkthroughThe workflow in Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub as GitHub Workflow
participant Script as generate_info_json.sh
participant Parser as jq
participant Docker as Docker Build Process
GitHub->>Script: Execute generate_info_json.sh
Script-->>GitHub: Return JSON with commit info
GitHub->>Parser: Parse JSON output
Parser-->>GitHub: Extract commitSha, repo, version
GitHub->>Docker: Build and push Docker image with labels
Suggested reviewers
Poem
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🔇 Additional comments (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
## Description Completion of #39025. We're able to see the labels with Docker API (script written by Cursor):  Implemented by these two Cursor prompts 🙂   <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Docker image builds now include added metadata (commit revision, source, and version details) to improve image traceability and version tracking. - **Chores** - CI workflows have been streamlined to consistently generate and apply metadata labels, ensuring reliable and automated image processing across all pipelines. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
This will allow us to identify the commit used for a Docker image, via DockerHub API, without having to download the image and inspecting the
info.jsoninside.Only doing it on
releaseimage for starters. If it works out well, and provides value, I'll open another PR to do this for the other places we're building the image.Automation
/test sanity
🔍 Cypress test results
Caution
If you modify the content in this section, you are likely to disrupt the CI result for your PR.
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit