mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
ci: Stop and remove CI container
This commit is contained in:
parent
fa5dccba32
commit
fa0584eb82
2 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,7 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
|
||||||
--env-file /tmp/env \
|
--env-file /tmp/env \
|
||||||
--name $CONTAINER_NAME \
|
--name $CONTAINER_NAME \
|
||||||
$CI_IMAGE_NAME_TAG)
|
$CI_IMAGE_NAME_TAG)
|
||||||
|
export CI_CONTAINER_ID
|
||||||
|
|
||||||
# Create a non-root user inside the container which matches the local user.
|
# Create a non-root user inside the container which matches the local user.
|
||||||
#
|
#
|
||||||
|
|
|
@ -82,3 +82,8 @@ fi
|
||||||
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
|
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
|
||||||
CI_EXEC LD_LIBRARY_PATH="${DEPENDS_DIR}/${HOST}/lib" test/fuzz/test_runner.py "${FUZZ_TESTS_CONFIG}" "$MAKEJOBS" -l DEBUG "${DIR_FUZZ_IN}"
|
CI_EXEC LD_LIBRARY_PATH="${DEPENDS_DIR}/${HOST}/lib" test/fuzz/test_runner.py "${FUZZ_TESTS_CONFIG}" "$MAKEJOBS" -l DEBUG "${DIR_FUZZ_IN}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
|
||||||
|
echo "Stop and remove CI container by ID"
|
||||||
|
docker container kill "${CI_CONTAINER_ID}"
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue