Skip to content

Commit a4ffe8a

Browse files
committed
fix(ci): replace sqlite test with single-postgres mode
- Official Docker image uses CGO_ENABLED=0 which does not support SQLite - Replace sqlite k3d test with single-instance PostgreSQL subchart test - Keep sqlite CI values for local testing with CGO-enabled builds
1 parent b754212 commit a4ffe8a

2 files changed

Lines changed: 36 additions & 4 deletions

File tree

.github/workflows/k3d-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- mode: sqlite
22-
values: ci/values-sqlite.yaml
23-
release: authgate-sqlite
24-
timeout: 120s
21+
- mode: single-postgres
22+
values: ci/values-single-postgres.yaml
23+
release: authgate-single
24+
timeout: 180s
2525
- mode: ha
2626
values: ci/values-ha.yaml
2727
release: authgate-ha

ci/values-single-postgres.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Single-instance with PostgreSQL subchart (CGO_ENABLED=0 image doesn't support SQLite)
2+
# Usage: helm install authgate-single helm-authgate/ -f helm-authgate/ci/values-single-postgres.yaml
3+
4+
replicaCount: 1
5+
6+
database:
7+
driver: postgres
8+
9+
postgresql:
10+
enabled: true
11+
auth:
12+
database: authgate
13+
username: authgate
14+
password: testpassword
15+
postgresPassword: testpostgrespassword
16+
17+
secrets:
18+
jwtSecret: "test-jwt-secret-for-local-development-only-not-production"
19+
sessionSecret: "test-session-secret-for-local-dev-only-not-production"
20+
defaultAdminPassword: "admin123"
21+
22+
server:
23+
baseUrl: "http://localhost:8080"
24+
environment: "development"
25+
26+
resources:
27+
requests:
28+
cpu: 50m
29+
memory: 32Mi
30+
limits:
31+
cpu: 200m
32+
memory: 128Mi

0 commit comments

Comments
 (0)