Skip to content
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

build(ci): disable next export, use build time vars for static build #42

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

kahboom
Copy link
Collaborator

@kahboom kahboom commented Mar 19, 2024

NOTE: This PR should be tested against a running cluster to ensure there are no breaking changes due to the change in next.config.js exposing the NEXT_PUBLIC_REKOR_DEFAULT_DOMAIN env var at build time. Because these changes happen at build time, it should not have any effect, but is worth a double check. Unfortunately this needs to be done manually for now while e2e tests are still in development.

To test:

  • Have an OpenShift or Kubernetes cluster running & logged into
  • Build the container image for this PR
  • Deploy TAS to the cluster using said container image, where an environment variable NEXT_PUBLIC_REKOR_DEFAULT_DOMAIN should be set to the Rekor server automatically (whether you deploy by the Helm chart or the operator)
  • If Rekor Search UI uses that value rather than the default upstream value of sigstore.dev, then everything is fine 🙆‍♀️

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.46%. Comparing base (37b6398) to head (dc84a2e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #42   +/-   ##
=======================================
  Coverage   63.46%   63.46%           
=======================================
  Files          13       13           
  Lines        1511     1511           
  Branches       48       37   -11     
=======================================
  Hits          959      959           
- Misses        551      552    +1     
+ Partials        1        0    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lance
Copy link
Member

lance commented Apr 19, 2024

@kahboom any reason this is remaining unmerged?

@kahboom
Copy link
Collaborator Author

kahboom commented Apr 19, 2024

@lance tbh it just keeps getting put on the back burner but I'll rebase and get this one sorted asap

Copy link

codecov bot commented Apr 25, 2024

Bundle Report

Changes will decrease total bundle size by 59.95MB ⬇️

Bundle name Size Change
rekor-search-ui-webpack-bundle-server 2.5MB 11.96MB ⬇️
rekor-search-ui-webpack-bundle-edge-server 208 bytes 208 bytes ⬆️
rekor-search-ui-webpack-bundle-client 2.96MB 47.99MB ⬇️

@kahboom kahboom merged commit 4d568d7 into main Apr 25, 2024
11 of 12 checks passed
@kahboom kahboom deleted the build-for-static-pages branch April 25, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants