mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
ci: use buildx in ci
Using buildx is required to properly load the correct driver, for use with registry caching. Neither build, nor BUILDKIT=1 currently do this properly. Use of `docker buildx build` is compatible with podman.
This commit is contained in:
@@ -42,8 +42,10 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
|
|||||||
DOCKER_BUILD_CACHE_ARG="--cache-from type=local,src=${DOCKER_BUILD_CACHE_OLD_DIR} --cache-to type=local,dest=${DOCKER_BUILD_CACHE_NEW_DIR},mode=max"
|
DOCKER_BUILD_CACHE_ARG="--cache-from type=local,src=${DOCKER_BUILD_CACHE_OLD_DIR} --cache-to type=local,dest=${DOCKER_BUILD_CACHE_NEW_DIR},mode=max"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Use buildx unconditionally
|
||||||
|
# Using buildx is required to properly load the correct driver, for use with registry caching. Neither build, nor BUILDKIT=1 currently do this properly
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
DOCKER_BUILDKIT=1 docker build \
|
docker buildx build \
|
||||||
--file "${BASE_READ_ONLY_DIR}/ci/test_imagefile" \
|
--file "${BASE_READ_ONLY_DIR}/ci/test_imagefile" \
|
||||||
--build-arg "CI_IMAGE_NAME_TAG=${CI_IMAGE_NAME_TAG}" \
|
--build-arg "CI_IMAGE_NAME_TAG=${CI_IMAGE_NAME_TAG}" \
|
||||||
--build-arg "FILE_ENV=${FILE_ENV}" \
|
--build-arg "FILE_ENV=${FILE_ENV}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user