Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #616 [CI] Optimise PR previews deployments by sharing resized…
… images (ogizanagi) This PR was squashed before being merged into the master branch. Discussion ---------- [CI] Optimise PR previews deployments by sharing resized images 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`](https://github.com/Elao/elao_/actions/runs/9255598295/job/25459719762#step:3:10), so using symlinks does not save us anything regarding the deployment… 😢 > > ![image](https://github.com/Elao/elao_/assets/2211145/d8f6c055-a0bc-441d-9bd5-354097a8e1c9) > > 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](https://github.com/Elao/elao_/assets/2211145/09f5579f-9dfe-4e42-a35d-9810f8b7429f)|![image](https://github.com/Elao/elao_/assets/2211145/dcd01856-64b4-4fd6-9cad-f048d10ef1d7)| Commits ------- 5da3cd0 Attempt to re-use same folder by changing resized img URL base path to reach parent staging deployment d9ea5d1 [CI] Optimise PR previews deployments by sharing resized images
- Loading branch information