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:
@@ -5,7 +5,7 @@ function extension_prepare_config__apa() {
|
||||
}
|
||||
|
||||
function custom_apt_repo__add_apa() {
|
||||
run_host_command_logged echo "deb [signed-by=${APT_SIGNING_KEY_FILE}] https://github.armbian.com/apa current main" "|" tee "${SDCARD}"/etc/apt/sources.list.d/armbian-apa.list
|
||||
run_host_command_logged echo "deb [signed-by=${APT_SIGNING_KEY_FILE}] http://github.armbian.com/apa current main" "|" tee "${SDCARD}"/etc/apt/sources.list.d/armbian-apa.list
|
||||
}
|
||||
|
||||
function post_armbian_repo_customize_image__install_from_apa() {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
function custom_apt_repo__add_armbian-github-repo() {
|
||||
cat <<- EOF > "${SDCARD}"/etc/apt/sources.list.d/armbian-config.sources
|
||||
Types: deb
|
||||
URIs: https://github.armbian.com/configng
|
||||
URIs: http://github.armbian.com/configng
|
||||
Suites: stable
|
||||
Components: main
|
||||
Signed-By: ${APT_SIGNING_KEY_FILE}
|
||||
|
||||
@@ -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