aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2023-05-31 11:34:15 +0100
committerstickies-v <stickies-v@protonmail.com>2023-10-13 10:17:21 +0100
commitce1699706e98201db73209ee495051359b1d0703 (patch)
treef7ff97a590a329a4ed4980c7caafaba2d11b6407 /ci
parent73dfa6da0801e3116e7e84cd5e089b98a9f70212 (diff)
downloadbitcoin-ce1699706e98201db73209ee495051359b1d0703.tar.xz
ci: add label to docker images
This allows us or the user to perform batch operations on all images produced by the ci, e.g. to prune all dangling images, without affecting non-ci images.
Diffstat (limited to 'ci')
-rwxr-xr-xci/test/02_run_container.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/test/02_run_container.sh b/ci/test/02_run_container.sh
index a7c1e22a6d..c842b15f2e 100755
--- a/ci/test/02_run_container.sh
+++ b/ci/test/02_run_container.sh
@@ -5,6 +5,7 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C.UTF-8
+export CI_IMAGE_LABEL="bitcoin-ci-test"
set -ex
@@ -19,6 +20,7 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
--file "${BASE_READ_ONLY_DIR}/ci/test_imagefile" \
--build-arg "CI_IMAGE_NAME_TAG=${CI_IMAGE_NAME_TAG}" \
--build-arg "FILE_ENV=${FILE_ENV}" \
+ --label="${CI_IMAGE_LABEL}" \
--tag="${CONTAINER_NAME}" \
"${BASE_READ_ONLY_DIR}"
docker volume create "${CONTAINER_NAME}_ccache" || true