fix(ci): auto-discover reachable Portainer URL from job container #5

Merged
root merged 1 commits from fix/runner-portainer-network into main 2026-07-10 13:22:02 +02:00

1 Commits

Author SHA1 Message Date
root 06ad8edf18 fix(ci): auto-discover reachable Portainer URL from job container
CI/CD Pipeline / Build & Deploy (pull_request) Successful in 21s
The act_runner on the QNAP creates an ephemeral docker bridge per job.
That network can't always reach the canonical PORTAINER_URL
(http://192.168.1.30:9000) — first deploy run failed with
'Failed to connect to 192.168.1.30 port 9000 after 130317 ms'.

New step 0 probes several candidate URLs (container's own IPs, default
gateways, then the secret value as fallback) against /api/status and
uses the first one that returns 200. The reachable host is then reused
for the DELETE+CREATE calls and the smoke-test on :3001.
2026-07-10 11:21:52 +00:00