mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Merge branch 'buildkit-inline-cache' into 'master'
Use buildkit and inline cache to speed up builds See merge request gitlab-org/gitlab-build-images!526
This commit is contained in:
commit
779a199009
3 changed files with 4 additions and 7 deletions
|
|
@ -306,9 +306,7 @@ function build_custom_if_needed() {
|
|||
echo "Building image $build_image_name"
|
||||
full_image_name="$CI_REGISTRY_IMAGE:$build_image_name"
|
||||
|
||||
# This re-uses and builds an existing image if needed
|
||||
docker pull --quiet "$full_image" || true
|
||||
docker_command=$(generate_command $@ --cache-from="$full_image_name" -t "$full_image_name")
|
||||
docker_command=$(generate_command $@ --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from="$full_image_name" -t "$full_image_name")
|
||||
echo "Docker command:"
|
||||
printf "\t%s" "$docker_command"
|
||||
eval $docker_command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue