Use postgreSQL 14 as postgres Docker image
PostgreSQL 13 will reach its end-of-life on November 13, 2025. So we're upgrading before that happens. We're also upgrading to PostgreSQL 14 in our CI. In this case, we're using the default distribution (Trixie, as of October 2025); it doesn't affect the development or production environments, so it's OK if use the default one.
This commit is contained in:
2
.github/workflows/db_schema.yml
vendored
2
.github/workflows/db_schema.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:13.16
|
||||
image: postgres:14.19
|
||||
ports: ["5432:5432"]
|
||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||
env:
|
||||
|
||||
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
timeout-minutes: 60
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:13.16
|
||||
image: postgres:14.19
|
||||
ports: ["5432:5432"]
|
||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||
env:
|
||||
|
||||
@@ -6,7 +6,7 @@ tests:
|
||||
image: "ruby:3.3.8"
|
||||
stage: test
|
||||
services:
|
||||
- postgres:13.16
|
||||
- postgres:14.19
|
||||
cache:
|
||||
key: consul
|
||||
paths:
|
||||
|
||||
@@ -4,7 +4,7 @@ services:
|
||||
|
||||
# use the preferred version of the official Postgres image
|
||||
# see https://hub.docker.com/_/postgres/
|
||||
image: postgres:13.16-bookworm
|
||||
image: postgres:14.19-bookworm
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||
|
||||
@@ -93,7 +93,7 @@ You should see an output similar to this:
|
||||
```bash
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
603ec83b78a6 consuldemocracy-app "./docker-entrypoint…" 23 seconds ago Up 22 seconds consuldemocracy-app-run-afb6d68e2d99
|
||||
d57fdd9637d6 postgres:13.16 "docker-entrypoint.s…" 50 minutes ago Up 22 seconds 5432/tcp consuldemocracy-database-1
|
||||
d57fdd9637d6 postgres:14.19 "docker-entrypoint.s…" 50 minutes ago Up 22 seconds 5432/tcp consuldemocracy-database-1
|
||||
```
|
||||
|
||||
## Running tests with RSpec
|
||||
|
||||
@@ -93,7 +93,7 @@ Deberías obtener algo similar a:
|
||||
```bash
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
603ec83b78a6 consuldemocracy-app "./docker-entrypoint…" 23 seconds ago Up 22 seconds consuldemocracy-app-run-afb6d68e2d99
|
||||
d57fdd9637d6 postgres:13.16 "docker-entrypoint.s…" 50 minutes ago Up 22 seconds 5432/tcp consuldemocracy-database-1
|
||||
d57fdd9637d6 postgres:14.19 "docker-entrypoint.s…" 50 minutes ago Up 22 seconds 5432/tcp consuldemocracy-database-1
|
||||
```
|
||||
|
||||
## Ejecutar tests con RSpec
|
||||
|
||||
Reference in New Issue
Block a user