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

Include gzipped version of assets in console tarball #1031

Merged
merged 4 commits into from
Jul 5, 2022
Merged

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Jul 5, 2022

Console side of oxidecomputer/omicron#1345. I tried it locally, but need to change the workflow file to run on this PR (instead of only main) to confirm that it works in a GH action.

The serve-from-nexus.md changes aren't really relevant to the change, I had just been meaning to do it and used the instructions when testing locally.

I'm only gzipping .js, .map, and .css files. According to this, unlike other font file types, woff are already compressed so you should not compress them.

@vercel
Copy link

vercel bot commented Jul 5, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
console-ui-storybook ✅ Ready (Inspect) Visit Preview Jul 5, 2022 at 3:19PM (UTC)

@@ -26,6 +26,8 @@ jobs:
- run: yarn install
- name: Build for Nexus
run: SHA=${{ github.sha }} yarn build-for-nexus
- name: Gzip individual files (keep originals)
run: ls dist/assets/*.{js,css,map} | xargs gzip --keep
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I love xargs

- name: Copy files to main.*
run: |
cp releases/console/${{ github.sha }}.tar.gz releases/console/main.tar.gz
cp releases/console/${{ github.sha }}.sha256.txt releases/console/main.sha256.txt
Copy link
Collaborator Author

@david-crespo david-crespo Jul 5, 2022

Choose a reason for hiding this comment

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

99% sure nobody was using this, for reasons indicated by the changes to serve-from-nexus.md — ./tools/install_prerequisites.sh in Omicron handles the whole thing for you and it points to a commit.

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