From 210a91bd8f7037006e03f5c339c96a72df535083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 16 Oct 2025 18:04:27 +0200 Subject: [PATCH] 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. --- .github/workflows/db_schema.yml | 2 +- .github/workflows/tests.yml | 2 +- .gitlab-ci.yml | 2 +- docker-compose.yml | 2 +- docs/en/installation/docker.md | 2 +- docs/es/installation/docker.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/db_schema.yml b/.github/workflows/db_schema.yml index 57ef83a2e..fdee76c0b 100644 --- a/.github/workflows/db_schema.yml +++ b/.github/workflows/db_schema.yml @@ -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: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e9bc10ba8..2cbbaf542 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d9df189dc..7165df830 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ tests: image: "ruby:3.3.8" stage: test services: - - postgres:13.16 + - postgres:14.19 cache: key: consul paths: diff --git a/docker-compose.yml b/docker-compose.yml index 63bd78c84..3e4767750 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/docs/en/installation/docker.md b/docs/en/installation/docker.md index 88f42a101..e200f66e1 100644 --- a/docs/en/installation/docker.md +++ b/docs/en/installation/docker.md @@ -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 diff --git a/docs/es/installation/docker.md b/docs/es/installation/docker.md index 8db5d62c3..468dad046 100644 --- a/docs/es/installation/docker.md +++ b/docs/es/installation/docker.md @@ -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