iron
iron
BBlueBuild
Created by iron on 3/11/2025 in #questions
Build Cache for GitLab.com
I've been using a caching strategy similar to this example from the GitLab documentation in other projects, and it works great:
docker buildx build --push -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA \
--cache-to type=registry,ref=$CI_REGISTRY_IMAGE/cache-image,mode=max \
--cache-from type=registry,ref=$CI_REGISTRY_IMAGE/cache-image .
docker buildx build --push -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA \
--cache-to type=registry,ref=$CI_REGISTRY_IMAGE/cache-image,mode=max \
--cache-from type=registry,ref=$CI_REGISTRY_IMAGE/cache-image .
I think we should follow a similar approach to BB_BUILDKIT_CACHE_GHA to support this caching mechanism by adding another if statement in the build_tag_push function in docker_drivers.rs. What do you all think?
10 replies
BBlueBuild
Created by iron on 1/24/2025 in #questions
Fedora base images
Thanks Luke! I'm currently using the rpm-ostree, default-flatpaks, and signing modules, which (I guess) should be safe for my use case. dnf sounds like a great addition. I will definitely give it a try.
7 replies