Publish EUnit/CT HTML reports to ci-reports host.
Refs EventHub/EventHubBack#62
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
autoindex on;
|
||||
charset utf-8;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~* /allure/ {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
}
|
||||
@@ -90,6 +90,19 @@ services:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
# ================== CI HTML reports (local runner) ==================
|
||||
ci-reports:
|
||||
image: nginx:1.27-alpine
|
||||
volumes:
|
||||
- "${CI_REPORTS_HOST_DIR:-/var/eventhub/ci-reports}:/usr/share/nginx/html:ro"
|
||||
- "./ci-reports/nginx.conf:/etc/nginx/conf.d/default.conf:ro"
|
||||
networks:
|
||||
- eventhub-net
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
|
||||
# ================== Admin UI ==================
|
||||
admin-ui:
|
||||
image: eventhub-admin-ui:latest
|
||||
|
||||
@@ -116,6 +116,17 @@ http:
|
||||
tls: true
|
||||
service: "client-ui-service"
|
||||
|
||||
ci-reports:
|
||||
rule: "Host(`ci-reports.dev.eventhub.local`)"
|
||||
entryPoints: ["web"]
|
||||
middlewares: ["redirect-to-https"]
|
||||
service: "ci-reports"
|
||||
ci-reports-secure:
|
||||
rule: "Host(`ci-reports.dev.eventhub.local`)"
|
||||
entryPoints: ["websecure"]
|
||||
tls: true
|
||||
service: "ci-reports"
|
||||
|
||||
services:
|
||||
api:
|
||||
failover:
|
||||
@@ -172,3 +183,8 @@ http:
|
||||
loadbalancer:
|
||||
servers:
|
||||
- url: "http://client-ui:80"
|
||||
|
||||
ci-reports:
|
||||
loadbalancer:
|
||||
servers:
|
||||
- url: "http://ci-reports:80"
|
||||
|
||||
Reference in New Issue
Block a user