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

[CI] Optimise PR previews deployments by sharing resized images #616

Merged
merged 2 commits into from
May 27, 2024

Conversation

ogizanagi
Copy link
Member

@ogizanagi ogizanagi commented May 27, 2024

As an attempt to get faster PR preview deployments, by using a single folder of resized images (gh-pages resized/ root folder) and symlinks for each PR preview build.

Important

Actually, Github builds the archive during the "pages build and deployment" by using --dereference --hard-dereference, so using symlinks does not save us anything regarding the deployment… 😢

image

https://github.com/orgs/community/discussions/9104

So, instead, tweaks the app so we can configure the base URL to use for resized images. Hence, we can use relative ../../resized base path to re-use the staging directory for PR previews (deployed to /pr/{number}). 🎉

Before After
image image

As an attempt to get faster PR preview deployments,
by using a single folder of resized images (gh-pages resized/ root folder)
and symlinks for each PR preview build.
@ogizanagi ogizanagi force-pushed the optilm-pr-preview-resized-img branch from d679b21 to d9ea5d1 Compare May 27, 2024 12:44
github-actions bot pushed a commit that referenced this pull request May 27, 2024
ogizanagi added a commit that referenced this pull request May 27, 2024
@ogizanagi ogizanagi added the wip 🛠 work in progress label May 27, 2024
github-actions bot pushed a commit that referenced this pull request May 27, 2024
@ogizanagi ogizanagi force-pushed the optilm-pr-preview-resized-img branch from a5cb08b to 5da3cd0 Compare May 27, 2024 14:26
github-actions bot pushed a commit that referenced this pull request May 27, 2024
@ogizanagi ogizanagi merged commit 7a188aa into master May 27, 2024
2 checks passed
@ogizanagi ogizanagi deleted the optilm-pr-preview-resized-img branch May 27, 2024 14:48
github-actions bot pushed a commit that referenced this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip 🛠 work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant