mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
main-config: add China mirror for ghcr.io
This commit is contained in:
@@ -188,6 +188,7 @@ function do_main_configuration() {
|
||||
[[ -z $USE_GITHUB_UBOOT_MIRROR ]] && [[ -z $UBOOT_MIRROR ]] && UBOOT_MIRROR=gitee
|
||||
[[ -z $GITHUB_MIRROR ]] && GITHUB_MIRROR=ghproxy
|
||||
[[ -z $DOWNLOAD_MIRROR ]] && DOWNLOAD_MIRROR=china
|
||||
[[ -z $GHCR_MIRROR ]] && GHCR_MIRROR=nju
|
||||
;;
|
||||
*) ;;
|
||||
|
||||
@@ -254,6 +255,9 @@ function do_main_configuration() {
|
||||
GHCR_MIRROR_ADDRESS="${GHCR_MIRROR_ADDRESS:-"ghcr.dockerproxy.com"}"
|
||||
declare -g -r GHCR_SOURCE=$GHCR_MIRROR_ADDRESS
|
||||
;;
|
||||
nju)
|
||||
declare -g -r GHCR_SOURCE='ghcr.nju.edu.cn'
|
||||
;;
|
||||
*)
|
||||
declare -g -r GHCR_SOURCE='ghcr.io'
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user