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

feat: Switch docker builds to Depot.dev #3172

Conversation

boc-the-git
Copy link
Collaborator

What type of PR is this?

  • feature

What this PR does / why we need it:

Moves our Docker builds away from the default GitHub Actions runners to using Depot.dev

My limited analysis of why our builds were so slow was that the ARM64 build was the key factor. Doing some research I came across the fact that the ARM builds on GHA are performed via emulation on an AMD64 system.
Switching to Depot.dev, we will get to perform native builds. My testing, which I've shared snippets of on Discord show that builds have reduced to ~3 minutes (without caching!!) compared to ~95 minutes (with caching) we have via GHA. Subsequent cached builds look like they'll be even quicker, but I haven't tested/tweaked that in any meaningful way.

Which issue(s) this PR fixes:

None. But it makes fixing them a hell of a lot quicker!!

Special notes for your reviewer:

Please do not merge the PR, when you approve it! I want to hit the merge button myself when I know I have the time to deal with anything if something were to go wrong. Obviously I'm not expecting that, but I'm just mindful maybe there's a permissions issue or something on the main repo that I've not been able to replicate.

Testing

I've done a lot on my forked repo. Tests included comparing to the best of my ability that the containers built via GHA and Depot were equivalent. Speeds were insanely faster, almost unbelievably so.

@michael-genson
Copy link
Collaborator

LGTM, awesome work! I'll wait for hay-kot though, he understands the pipeline a lot more than I do

Copy link
Collaborator

@hay-kot hay-kot left a comment

Choose a reason for hiding this comment

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

🚀

@boc-the-git boc-the-git merged commit 1a2ff95 into mealie-recipes:mealie-next Feb 14, 2024
9 checks passed
@boc-the-git boc-the-git deleted the feat/switch-docker-builds-to-depot branch February 14, 2024 08:39
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.

None yet

3 participants