Update vpn proxy routing checks
Some checks failed
Build and Deploy Gateway / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-05-08 16:52:01 +03:00
parent 03885d2e09
commit 71f8e0b84c
2 changed files with 26 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ env:
jobs:
build-and-deploy:
runs-on: lxc-111
runs-on: lxc-107
steps:
- name: Clone repository
env:
@@ -29,9 +29,21 @@ 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 -t "${IMAGE}:latest" -t "${IMAGE}:${{ gitea.sha }}" .
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 }}" \
.
docker push "${IMAGE}:latest"
docker push "${IMAGE}:${{ gitea.sha }}"