Files
cursor-devbox/.gitea/workflows/build-and-push.yaml
T
Ubuntu 90c6b6c425
build-and-push / build (push) Successful in 8m40s
Force cursor-agent egress through node2 SOCKS5 via local CONNECT bridge
The Bun-based cursor-agent only honors http://-scheme HTTP(S)_PROXY values
and silently ignores socks5(h):// — with the pod's socks5h env it egressed
directly. Add devbox-proxy-bridge (loopback HTTP CONNECT -> node2 SOCKS5),
run it supervised from the entrypoint, and shadow cursor-agent/agent with a
wrapper that points at the bridge (fail-loud, no bypass). CI path triggers
updated for the new files.
2026-09-27 09:48:55 +00:00

36 lines
1.1 KiB
YAML

name: build-and-push
on:
push:
branches: [master]
paths:
- 'Dockerfile'
- 'entrypoint.sh'
- 'devbox-proxy-bridge.js'
- 'cursor-agent-wrapper.sh'
- '.gitea/workflows/build-and-push.yaml'
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: dcr.trinitysan.by
username: ${{ secrets.DCR_USERNAME }}
password: ${{ secrets.DCR_PASSWORD }}
- uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
tags: |
dcr.trinitysan.by/infra/cursor-devbox:latest
dcr.trinitysan.by/infra/cursor-devbox:${{ github.sha }}
dcr.trinitysan.by/infra/cursor-devbox:${{ github.run_number }}-${{ github.sha }}
cache-from: type=registry,ref=dcr.trinitysan.by/infra/cursor-devbox:build-cache
cache-to: type=registry,ref=dcr.trinitysan.by/infra/cursor-devbox:build-cache,mode=max