neiam
/diogramos
diogramos
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
ci: point Postgres service at port 54329 to match config/test.exs
08f0a00 · gmorell · 2026-06-27 15:14
Files changed
modified
.github/workflows/ci.yml
+3
−1
@@ -24,8 +24,10 @@ jobs:
| 24 | 24 | env: |
| 25 | 25 | POSTGRES_USER: postgres |
| 26 | 26 | POSTGRES_PASSWORD: postgres |
| 27 | + # config/test.exs connects on 54329 (matches compose.yml), so publish | |
| 28 | + # the service container's 5432 on that host port. | |
| 27 | 29 | ports: |
| 28 | − - 5432:5432 | |
| 30 | + - 54329:5432 | |
| 29 | 31 | options: >- |
| 30 | 32 | --health-cmd "pg_isready -U postgres" |
| 31 | 33 | --health-interval 5s |
modified
app.yml
+6
−0
@@ -160,6 +160,12 @@ kind: Service
| 160 | 160 | metadata: |
| 161 | 161 | name: diogramos-headless |
| 162 | 162 | namespace: diogramos |
| 163 | + # Labels here propagate to the Endpoints object. libcluster's K8s | |
| 164 | + # strategy filters endpoints by labelSelector (not by service name), | |
| 165 | + # so without `name: diogramos` here the Endpoints have no matching | |
| 166 | + # label and discovery silently returns zero peers. | |
| 167 | + labels: | |
| 168 | + name: diogramos | |
| 163 | 169 | spec: |
| 164 | 170 | clusterIP: None |
| 165 | 171 | publishNotReadyAddresses: true |
Parents: 106a19e