add customized GHCR_MIRROR_ADDRESS support

This commit is contained in:
amazingfate
2024-07-16 10:27:43 +08:00
committed by Igor
parent 1e4813cba0
commit 5bd400a726

View File

@@ -251,7 +251,8 @@ function do_main_configuration() {
case $GHCR_MIRROR in
dockerproxy)
declare -g -r GHCR_SOURCE='ghcr.dockerproxy.com'
GHCR_MIRROR_ADDRESS="${GHCR_MIRROR_ADDRESS:-"ghcr.dockerproxy.com"}"
declare -g -r GHCR_SOURCE=$GHCR_MIRROR_ADDRESS
;;
*)
declare -g -r GHCR_SOURCE='ghcr.io'