You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: ci/test/02_run_container.sh
+5-3
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ set -ex
12
12
if [ -z"$DANGER_RUN_CI_ON_HOST" ];then
13
13
# Export all env vars to avoid missing some.
14
14
# Though, exclude those with newlines to avoid parsing problems.
15
-
python3 -c 'import os; [print(f"{key}={value}") for key, value in os.environ.items() if "\n" not in value and "HOME" != key and "PATH" != key and "USER" != key]'| tee /tmp/env
15
+
python3 -c 'import os; [print(f"{key}={value}") for key, value in os.environ.items() if "\n" not in value and "HOME" != key and "PATH" != key and "USER" != key]'| tee "/tmp/env-$USER-$CONTAINER_NAME"
16
16
# System-dependent env vars must be kept as is. So read them from the container.
17
-
docker run --rm "${CI_IMAGE_NAME_TAG}" bash -c "env | grep --extended-regexp '^(HOME|PATH|USER)='"| tee --append /tmp/env
17
+
docker run --rm "${CI_IMAGE_NAME_TAG}" bash -c "env | grep --extended-regexp '^(HOME|PATH|USER)='"| tee --append "/tmp/env-$USER-$CONTAINER_NAME"
18
18
echo"Creating $CI_IMAGE_NAME_TAG container to run in"
0 commit comments