Skip to content

Commit

Permalink
Enable oras pull to use system proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
IsMrX authored and igorpecovnik committed Sep 13, 2024
1 parent 8052919 commit dfe8fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/general/oci-oras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfe8fc3

Please sign in to comment.