Skip to content

Make buildID persistent for multiarch build #2709

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

alik-agaev
Copy link
Contributor

Description and Related Issue(s)

This PR implements custom build ID generation in our Next.js configuration.

This should resolve the issue of having different buildIDs in Docker images built for different architectures under the same tag. That inconsistency has prevented us from scaling the frontend across both amd64 and arm64 nodes.

Proposed Changes

Support environment-based build IDs via NEXT_BUILD_ID
Provide a fallback unique ID when no env var is specified (using timestamp + random string)

Breaking or Incompatible Changes


Additional Information


Checklist for PR author

  • I have tested these changes locally.
  • I added tests to cover any new functionality, following this guide
  • Whenever I fix a bug, I include a regression test to ensure that the bug does not reappear silently.
  • If I have added, changed, renamed, or removed an environment variable
    • I updated the list of environment variables in the documentation
    • I made the necessary changes to the validator script according to the guide
    • I added "ENVs" label to this pull request

@alik-agaev alik-agaev requested review from tom2drum and Copilot May 6, 2025 15:26
Copy link

@Copilot 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.

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • Dockerfile: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant