From dfe8fc39e84f77718a86ab587b6851d872942e91 Mon Sep 17 00:00:00 2001 From: IsMrX Date: Fri, 13 Sep 2024 19:49:29 +0800 Subject: [PATCH] Enable oras pull to use system proxy --- lib/functions/general/oci-oras.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/general/oci-oras.sh b/lib/functions/general/oci-oras.sh index b41f14f6c424..1e7ac0c3f220 100644 --- a/lib/functions/general/oci-oras.sh +++ b/lib/functions/general/oci-oras.sh @@ -85,7 +85,7 @@ function run_tool_oras() { display_alert "Running ORAS ${ACTUAL_VERSION}" "HOME='${ORAS_HOME}'; retries='${retries:-1}'; cmdline: $*" "debug" if [[ "${retries:-1}" -gt 1 ]]; then display_alert "Calling ORAS with retries ${retries}" "$*" "debug" - sleep_seconds="30" do_with_retries "${retries}" env -i "HOME=${ORAS_HOME}" "${ORAS_BIN}" "$@" + sleep_seconds="30" do_with_retries "${retries}" env -i "HOME=${ORAS_HOME}" "HTTPS_PROXY=${HTTPS_PROXY}" "${ORAS_BIN}" "$@" else # If any parameters passed, call ORAS, otherwise exit. We call it this way (sans-parameters) early to prepare ORAS tooling. if [[ $# -eq 0 ]]; then