Skip to content

ci: support historical Dockerfile targets in rebuild workflow#2509

Merged
henrypark133 merged 1 commit into
stagingfrom
fix/rebuild-release-image-target
Apr 15, 2026
Merged

ci: support historical Dockerfile targets in rebuild workflow#2509
henrypark133 merged 1 commit into
stagingfrom
fix/rebuild-release-image-target

Conversation

@henrypark133
Copy link
Copy Markdown
Collaborator

Summary

  • detect whether the checked-out Dockerfile defines a runtime stage
  • use the runtime target when present and fall back to building the final stage when it is not
  • include the detected stage mode in the workflow summary

Why

The v0.24.0 release Dockerfile predates the named runtime stage, so the rebuild workflow failed with target stage "runtime" could not be found when rebuilding that release tag.

Copilot AI review requested due to automatic review settings April 15, 2026 22:11
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@github-actions github-actions Bot added size: S 10-49 changed lines scope: ci CI/CD workflows risk: medium Business logic, config, or moderate-risk modules contributor: core 20+ merged PRs labels Apr 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the release image rebuild GitHub Actions workflow to handle historical tags whose Dockerfile does not define a named runtime stage, preventing failures when rebuilding older releases (e.g., v0.24.0).

Changes:

  • Add a “Detect runtime stage” step that checks whether the checked-out Dockerfile defines AS runtime.
  • Conditionally build either the runtime target (when present) or the Dockerfile’s final stage (when not).
  • Include the detected stage mode in the workflow run summary.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@henrypark133 henrypark133 merged commit ecd37e1 into staging Apr 15, 2026
18 checks passed
@henrypark133 henrypark133 deleted the fix/rebuild-release-image-target branch April 15, 2026 22:16
@henrypark133 henrypark133 mentioned this pull request Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: core 20+ merged PRs risk: medium Business logic, config, or moderate-risk modules scope: ci CI/CD workflows size: S 10-49 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants