Skip to content

Commit

Permalink
PE-5632 fix: accept cert without proxy (#316)
Browse files Browse the repository at this point in the history
* fix: copy cert in dockerfile

Signed-off-by: Nianyu Shen <[email protected]>

* fix: accept cert without proxy

Signed-off-by: Nianyu Shen <[email protected]>

---------

Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush authored Nov 28, 2024
1 parent 957e062 commit 025e182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion earthly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ if ! docker run --rm --privileged $ALPINE_IMG sh -c 'echo "Privileged container
echo "Privileged containers are not allowed for the current user."
exit 1
fi
if [ -z "$HTTP_PROXY" ] && [ -z "$HTTPS_PROXY"]; then
if [ -z "$HTTP_PROXY" ] && [ -z "$HTTPS_PROXY" ] && [ -z "$(find certs -type f ! -name '.*' -print -quit)" ]; then
build_without_proxy "$@"
else
build_with_proxy "$@"
Expand Down

0 comments on commit 025e182

Please sign in to comment.