Skip to content

Commit dfe8fc3

Browse files
IsMrXigorpecovnik
authored andcommitted
Enable oras pull to use system proxy
1 parent 8052919 commit dfe8fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/functions/general/oci-oras.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function run_tool_oras() {
8585
display_alert "Running ORAS ${ACTUAL_VERSION}" "HOME='${ORAS_HOME}'; retries='${retries:-1}'; cmdline: $*" "debug"
8686
if [[ "${retries:-1}" -gt 1 ]]; then
8787
display_alert "Calling ORAS with retries ${retries}" "$*" "debug"
88-
sleep_seconds="30" do_with_retries "${retries}" env -i "HOME=${ORAS_HOME}" "${ORAS_BIN}" "$@"
88+
sleep_seconds="30" do_with_retries "${retries}" env -i "HOME=${ORAS_HOME}" "HTTPS_PROXY=${HTTPS_PROXY}" "${ORAS_BIN}" "$@"
8989
else
9090
# If any parameters passed, call ORAS, otherwise exit. We call it this way (sans-parameters) early to prepare ORAS tooling.
9191
if [[ $# -eq 0 ]]; then

0 commit comments

Comments
 (0)