Skip to content

Commit a0fa880

Browse files
restore backwards compatibility for ci_docker_proxy
1 parent 832cc73 commit a0fa880

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scanner.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@
4646
boost_init_config
4747
boost_init_cli
4848
- |
49+
if [ -n "${BOOST_DOCKER_PROXY:-}" ] && [ -n "${CI_DOCKER_PROXY}" ] ; then
50+
if [ "${BOOST_DOCKER_PROXY:-}" == "group" ]; then
51+
export CI_DOCKER_PROXY="${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}"
52+
elif [ "${BOOST_DOCKER_PROXY:-}" == "direct" ]; then
53+
export CI_DOCKER_PROXY="${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}"
54+
fi
55+
fi
56+
4957
if [ -n "${CI_DOCKER_PROXY:-}" ]; then
5058
echo "${CI_DEPENDENCY_PROXY_PASSWORD}" | docker login "${CI_DEPENDENCY_PROXY_SERVER}" -u "${CI_DEPENDENCY_PROXY_USER}" --password-stdin
5159
fi

0 commit comments

Comments
 (0)