Skip to content

Commit ce16997

Browse files
committed
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.
1 parent 73dfa6d commit ce16997

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/test/02_run_container.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
66

77
export LC_ALL=C.UTF-8
8+
export CI_IMAGE_LABEL="bitcoin-ci-test"
89

910
set -ex
1011

@@ -19,6 +20,7 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
1920
--file "${BASE_READ_ONLY_DIR}/ci/test_imagefile" \
2021
--build-arg "CI_IMAGE_NAME_TAG=${CI_IMAGE_NAME_TAG}" \
2122
--build-arg "FILE_ENV=${FILE_ENV}" \
23+
--label="${CI_IMAGE_LABEL}" \
2224
--tag="${CONTAINER_NAME}" \
2325
"${BASE_READ_ONLY_DIR}"
2426
docker volume create "${CONTAINER_NAME}_ccache" || true

0 commit comments

Comments
 (0)