kata-deploy: export CI in the build container

The clone_tests_repo() in ci/lib.sh relies on CI variable to decide
whether to checkout the tests repository or not. So it is required to
pass that variable down to the build container of kata-deploy, otherwise
it can fail on some scenarios.

Fixes #4949
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta 2022-08-17 10:42:49 -03:00
parent 4f90e3c87e
commit f7d41e98cb

View File

@ -40,6 +40,7 @@ docker build -q -t build-kata-deploy \
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
--env CI="${CI:-}" \
--env USER=${USER} -v "${kata_dir}:${kata_dir}" \
--rm \
-w ${script_dir} \