0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-22 12:23:34 -05:00
bitcoin-bitcoin-core/ci/test
0xb10c e87429a2d0
ci: optionally use local docker build cache
By setting DANGER_DOCKER_BUILD_CACHE_HOST_DIR, the task-specific
docker images built during the CI run can be cached. This allows,
for example, ephemeral CI runners to reuse the docker images (or
layers of it) from earlier runs, by persisting the image cache
before the ephemeral CI runner is shut down. The cache keyed by
`CONTAINER_NAME`.

As --cache-to doesn't remove old cache files, the existing cache
is removed after a successful `docker build` and the newly cached
image is moved to it's location to avoid the cache from growing
indefinitly with old, unused layers.

When --cache-from doesn't find the directory, the cached version is
a cache-miss, or the cache can't be imported for whatever other reason,
it warns and `docker build` continues by building the docker image.

This feature is opt-in. The documentation for the cache type=local
can be found https://docs.docker.com/build/cache/backends/local/

This replaces https://github.com/bitcoin/bitcoin/pull/31377
2024-12-21 14:35:28 +01:00
..
00_setup_env.sh Merge bitcoin/bitcoin#30869: ci: Print inner env, Make ccache config more flexible 2024-09-19 10:42:09 +01:00
00_setup_env_arm.sh ci: Migrate CI scripts to CMake 2024-08-16 21:19:13 +01:00
00_setup_env_i686_centos.sh ci: Bump centos gcc 2024-12-12 09:39:17 +01:00
00_setup_env_i686_multiprocess.sh ci: Migrate CI scripts to CMake 2024-08-16 21:19:13 +01:00
00_setup_env_mac_cross.sh ci: Migrate CI scripts to CMake 2024-08-16 21:19:13 +01:00
00_setup_env_mac_native.sh ci: Temporarily disable macOS/Windows fuzz step 2024-10-31 13:51:13 +01:00
00_setup_env_mac_native_fuzz.sh [ci] Split out native fuzz jobs for macOS and windows 2024-11-25 10:41:17 +00:00
00_setup_env_native_asan.sh ci: Use clang-19 from apt.llvm.org 2024-10-28 14:34:54 +01:00
00_setup_env_native_fuzz.sh ci: Use clang-19 from apt.llvm.org 2024-10-28 14:34:54 +01:00
00_setup_env_native_fuzz_with_msan.sh ci: Bump default CCACHE_MAXSIZE to 500M 2024-09-12 12:34:02 +02:00
00_setup_env_native_fuzz_with_valgrind.sh ci: add LLVM_SYMBOLIZER_PATH to Valgrind fuzz job 2024-09-24 17:04:44 +01:00
00_setup_env_native_msan.sh ci: Bump default CCACHE_MAXSIZE to 500M 2024-09-12 12:34:02 +02:00
00_setup_env_native_nowallet_libbitcoinkernel.sh Bump python minimum supported version to 3.10 2024-08-28 15:53:07 +02:00
00_setup_env_native_previous_releases.sh ci: remove UPnP options 2024-10-25 09:27:12 -04:00
00_setup_env_native_tidy.sh ci: Update Clang in "tidy" job 2024-12-05 14:37:47 +00:00
00_setup_env_native_tsan.sh ci: Use clang-19 from apt.llvm.org 2024-10-28 14:34:54 +01:00
00_setup_env_native_valgrind.sh ci: remove UPnP options 2024-10-25 09:27:12 -04:00
00_setup_env_s390x.sh ci: Migrate CI scripts to CMake 2024-08-16 21:19:13 +01:00
00_setup_env_win64.sh ci: Skip broken Wine64 tests by default 2024-11-13 18:38:24 +01:00
01_base_install.sh ci: Use clang-19 from apt.llvm.org 2024-10-28 14:34:54 +01:00
02_run_container.sh ci: optionally use local docker build cache 2024-12-21 14:35:28 +01:00
03_test_script.sh ci: Bump centos gcc 2024-12-12 09:39:17 +01:00
GetCMakeLogFiles.cmake ci: Handle log files regardless of CMake's version 2024-09-07 14:38:14 +01:00
wrap-valgrind.sh scripted-diff: Bump copyright headers 2021-12-30 19:36:57 +02:00
wrap-wine.sh ci: Migrate CI scripts to CMake 2024-08-16 21:19:13 +01:00