mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Preparation for http proxy caching (#8281)
* always use http for apt repos * pass possible proxy arguments to docker * populate lower-case env variables with upper-case ones if not set otherwise
This commit is contained in:
@@ -409,6 +409,13 @@ function docker_cli_prepare_launch() {
|
||||
"--env" "GITHUB_SHA=${GITHUB_SHA}"
|
||||
"--env" "GITHUB_WORKFLOW=${GITHUB_WORKFLOW}"
|
||||
"--env" "GITHUB_WORKSPACE=${GITHUB_WORKSPACE}"
|
||||
|
||||
# Pass proxy args
|
||||
"--env" "http_proxy=${http_proxy:-${HTTP_PROXY}}"
|
||||
"--env" "https_proxy=${https_proxy:-${HTTPS_PROXY}}"
|
||||
"--env" "HTTP_PROXY=${HTTP_PROXY}"
|
||||
"--env" "HTTPS_PROXY=${HTTPS_PROXY}"
|
||||
"--env" "APT_PROXY_ADDR=${APT_PROXY_ADDR}"
|
||||
)
|
||||
|
||||
# This env var is used super early (in entrypoint.sh), so set it as an env to current value.
|
||||
|
||||
@@ -196,7 +196,7 @@ function create_sources_list_and_deploy_repo_key() {
|
||||
fi
|
||||
cat <<- EOF > "${basedir}"/etc/apt/sources.list.d/armbian.sources
|
||||
Types: deb
|
||||
URIs: https://${armbian_mirror}
|
||||
URIs: http://${armbian_mirror}
|
||||
Suites: $RELEASE
|
||||
Components: ${components[*]}
|
||||
Signed-By: ${APT_SIGNING_KEY_FILE}
|
||||
|
||||
Reference in New Issue
Block a user