Skip to content

chore: optimize pipeline by caching docker image layers#3158

Merged
Ziinc merged 1 commit intoLogflare:mainfrom
nelsonmestevao:ne/caching-docker
Feb 13, 2026
Merged

chore: optimize pipeline by caching docker image layers#3158
Ziinc merged 1 commit intoLogflare:mainfrom
nelsonmestevao:ne/caching-docker

Conversation

@nelsonmestevao
Copy link
Contributor

@nelsonmestevao nelsonmestevao commented Feb 12, 2026

I have considered using this action, I discarded it because it is not from the official docker team.

This guide gives a good overview on how to accomplish this and explains why caching images from the docker registry is in practice worse than just pulling.

I am essentially following this approach.

Performance Comparison

Previously, this was taken ~9 minutes to setup the supabase services.

image

Now, it is taking around ~7 minutes by caching the layers of the image build.

image

I have considered using this
[action](https://github.com/marketplace/actions/docker-layer-caching), I
discarded it because it is not from the offical docker team.

This
[guide](https://www.blacksmith.sh/blog/cache-is-king-a-guide-for-docker-layer-caching-in-github-actions)
gives a good overview on how to accomplish this and explains why caching
images from the docker registry is in practice worst than just pulling.

I am essentially following this
[approach](https://cicube.io/blog/optimize-docker-builds-github-actions-cache/).
@Ziinc Ziinc merged commit fbf9f44 into Logflare:main Feb 13, 2026
8 checks passed
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.

2 participants