CICD-213 · Runner network configuration
Encyclopedia · Runner administration and execution infrastructure · All snippets
Previous · CICD-212 · Next · CICD-214
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites lab host, trusted repositories, installed act_runner or GitHub runner when named.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
REGISTRY_CA_FILE,REGISTRY_HOST.
2. Copy the snippet
bash
getent ahosts "${REGISTRY_HOST:?}"
curl --silent --show-error --cacert "${REGISTRY_CA_FILE:?}" --connect-timeout 5 --output /dev/null --write-out '%{http_code}\n' "https://$REGISTRY_HOST/v2/"3. How it works
The command resolves the name using the configured system name service of the machine or container running the step. The request checks the selected HTTP interface. Timeouts limit waiting, and an explicit exit or payload condition determines pass and fail.
4. Verify the result
Test from the job network. HTTP 200 or a registry 401 challenge demonstrates reachability, whereas cert errors indicate a trust problem.
Validation syntax-validated (Bash parse). Status definitions.