Skip to content

Commit b189146

Browse files
committed
fix: add stub hosts for nginx upstream resolution in CI
1 parent 1716fab commit b189146

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/validate.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ jobs:
2222
run: docker compose config --quiet
2323

2424
- name: Check nginx config syntax
25-
run: docker run --rm -v "$PWD/nginx.conf:/etc/nginx/nginx.conf:ro" nginx:alpine nginx -t
25+
run: |
26+
# Add stub DNS entries for upstream hosts so nginx -t doesn't fail on DNS
27+
docker run --rm \
28+
-v "$PWD/nginx.conf:/etc/nginx/nginx.conf:ro" \
29+
--add-host app:127.0.0.1 \
30+
--add-host bot:127.0.0.1 \
31+
nginx:alpine nginx -t
2632
2733
- name: Verify GHCR image exists
2834
run: |

0 commit comments

Comments
 (0)