Remove proxy args from gateway build
Some checks failed
Build and Deploy Gateway / build-and-deploy (push) Failing after 30s
Some checks failed
Build and Deploy Gateway / build-and-deploy (push) Failing after 30s
This commit is contained in:
@@ -29,18 +29,10 @@ jobs:
|
||||
cd repo
|
||||
REGISTRY_HOST=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||')
|
||||
IMAGE="${REGISTRY_HOST}/${{ gitea.repository }}/gateway"
|
||||
BUILD_PROXY="${BUILD_PROXY:-http://192.168.50.111:8080}"
|
||||
BUILD_NO_PROXY="${BUILD_NO_PROXY:-localhost,127.0.0.1,192.168.50.0/24,192.168.50.109:3000}"
|
||||
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY_HOST" -u "${{ gitea.actor }}" --password-stdin
|
||||
docker build \
|
||||
--network host \
|
||||
--build-arg HTTP_PROXY="${BUILD_PROXY}" \
|
||||
--build-arg HTTPS_PROXY="${BUILD_PROXY}" \
|
||||
--build-arg NO_PROXY="${BUILD_NO_PROXY}" \
|
||||
--build-arg http_proxy="${BUILD_PROXY}" \
|
||||
--build-arg https_proxy="${BUILD_PROXY}" \
|
||||
--build-arg no_proxy="${BUILD_NO_PROXY}" \
|
||||
-t "${IMAGE}:latest" \
|
||||
-t "${IMAGE}:${{ gitea.sha }}" \
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user