Skip to content

Commit fa0584e

Browse files
author
MarcoFalke
committed
ci: Stop and remove CI container
1 parent fa5dccb commit fa0584e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ci/test/04_install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
5050
--env-file /tmp/env \
5151
--name $CONTAINER_NAME \
5252
$CI_IMAGE_NAME_TAG)
53+
export CI_CONTAINER_ID
5354

5455
# Create a non-root user inside the container which matches the local user.
5556
#

ci/test/06_script_b.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,8 @@ fi
8282
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
8383
CI_EXEC LD_LIBRARY_PATH="${DEPENDS_DIR}/${HOST}/lib" test/fuzz/test_runner.py "${FUZZ_TESTS_CONFIG}" "$MAKEJOBS" -l DEBUG "${DIR_FUZZ_IN}"
8484
fi
85+
86+
if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
87+
echo "Stop and remove CI container by ID"
88+
docker container kill "${CI_CONTAINER_ID}"
89+
fi

0 commit comments

Comments
 (0)