remove github no_proxy

This commit is contained in:
Schtil
2025-02-23 12:02:28 +00:00
parent 8d3858a95c
commit a6c8c0c9da
+1 -1
View File
@@ -32,7 +32,7 @@ test:
echo "Обрабатываем файл: $file" echo "Обрабатываем файл: $file"
if ! grep -q "^ENV http_proxy" "$file"; then if ! grep -q "^ENV http_proxy" "$file"; then
sed -i '/^FROM.*alpine/ a RUN apk --update --no-cache add openssl wget' "$file" sed -i '/^FROM.*alpine/ a RUN apk --update --no-cache add openssl wget' "$file"
sed -i '/^FROM/ a ENV http_proxy=http:\/\/84.201.181.188:15000\nENV https_proxy=http:\/\/84.201.181.188:15000\nENV no_proxy=localhost,github.com' "$file" sed -i '/^FROM/ a ENV http_proxy=http:\/\/84.201.181.188:15000\nENV https_proxy=http:\/\/84.201.181.188:15000\nENV no_proxy=localhost' "$file"
echo -e "\nENV http_proxy=\nENV https_proxy=\nENV no_proxy=" >> "$file" echo -e "\nENV http_proxy=\nENV https_proxy=\nENV no_proxy=" >> "$file"
echo "Добавлены прокси-переменные в $file" echo "Добавлены прокси-переменные в $file"
else else