-
-
Notifications
You must be signed in to change notification settings - Fork 64
fix(ci): set build_target to 'application' to reduce Docker image size #7913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -31,6 +31,7 @@ jobs: | |||||||||||||||
| image_name: 'snuba' | ||||||||||||||||
| platforms: linux/${{ matrix.platform }} | ||||||||||||||||
| dockerfile_path: 'Dockerfile' | ||||||||||||||||
| build_target: 'application' | ||||||||||||||||
| tag_suffix: -${{ matrix.platform }} | ||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixIn the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid. There is: Lines 146 to 152 in b5a6b12
|
||||||||||||||||
| ghcr: true | ||||||||||||||||
| tag_nightly: false | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Production build job missing
build_targetsettingHigh Severity
The
build_target: 'application'is added tobuild-multiplatformbut not to thebuild-productionjob (line 49–60), which pushes to Google Artifact Registry. Withoutbuild_target, Docker defaults to building the last stage in the Dockerfile, which istesting— a bloated image containing dev dependencies and Rust toolchains. The Google AR "production" image now diverges from the GHCR images in a way it didn't before this change.Additional Locations (1)
.github/workflows/image.yml#L48-L60Reviewed by Cursor Bugbot for commit 0b7b2c8. Configure here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self-hosted build does not care about the
build-production. This is wrong.