Skip to content

Commit 81e2f7c

Browse files
Merge pull request #3799 from SwiftPackageIndex/pgnio-update
Switch to PG 16 + md5 auth
2 parents fa13b54 + 3721a8a commit 81e2f7c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Tests/AppTests/Helpers/ShellOutCommand+ext.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ extension ShellOutCommand {
2222
"-e", "POSTGRES_DB=spi_test",
2323
"-e", "POSTGRES_USER=spi_test",
2424
"-e", "POSTGRES_PASSWORD=xxx",
25+
"-e", "POSTGRES_HOST_AUTH_METHOD=md5",
26+
"-e", "POSTGRES_INITDB_ARGS=--auth-host=md5",
2527
"-e", "PGDATA=/pgdata",
2628
"--tmpfs", "/pgdata:rw,noexec,nosuid,size=1024m",
2729
"-p", "\(port):5432",
2830
"-d",
29-
"postgres:13-alpine"
31+
"postgres:16-alpine"
3032
])
3133
}
3234

scripts/start-ci-dbs.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ for port in {0..7}; do
1212
-e POSTGRES_DB=spi_test \
1313
-e POSTGRES_USER=spi_test \
1414
-e POSTGRES_PASSWORD=xxx \
15+
-e POSTGRES_HOST_AUTH_METHOD=md5 \
16+
-e POSTGRES_INITDB_ARGS="--auth-host=md5" \
1517
-e PGDATA=/pgdata \
1618
--tmpfs /pgdata:rw,noexec,nosuid,size=1024m \
1719
--network spi_test \
1820
-d \
19-
postgres:13-alpine
21+
postgres:16-alpine
2022
done

0 commit comments

Comments
 (0)