Skip to content

Commit 096c960

Browse files
committed
Add support for Postgres v14
1 parent 256d3ff commit 096c960

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

roles/matrix-postgres/defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ matrix_postgres_docker_image_v10: "{{ matrix_container_global_registry_prefix }}
2222
matrix_postgres_docker_image_v11: "{{ matrix_container_global_registry_prefix }}postgres:11.13{{ matrix_postgres_docker_image_suffix }}"
2323
matrix_postgres_docker_image_v12: "{{ matrix_container_global_registry_prefix }}postgres:12.8{{ matrix_postgres_docker_image_suffix }}"
2424
matrix_postgres_docker_image_v13: "{{ matrix_container_global_registry_prefix }}postgres:13.4{{ matrix_postgres_docker_image_suffix }}"
25-
matrix_postgres_docker_image_latest: "{{ matrix_postgres_docker_image_v13 }}"
25+
matrix_postgres_docker_image_v14: "{{ matrix_container_global_registry_prefix }}postgres:14.0{{ matrix_postgres_docker_image_suffix }}"
26+
matrix_postgres_docker_image_latest: "{{ matrix_postgres_docker_image_v14 }}"
2627

2728
# This variable is assigned at runtime. Overriding its value has no effect.
2829
matrix_postgres_docker_image_to_use: '{{ matrix_postgres_docker_image_latest }}'

roles/matrix-postgres/tasks/util/detect_existing_postgres_version.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,8 @@
5454
set_fact:
5555
matrix_postgres_detected_version_corresponding_docker_image: "{{ matrix_postgres_docker_image_v12 }}"
5656
when: "matrix_postgres_detected_version == '12' or matrix_postgres_detected_version.startswith('12.')"
57+
58+
- name: Determine corresponding Docker image to detected version (use 13.x, if detected)
59+
set_fact:
60+
matrix_postgres_detected_version_corresponding_docker_image: "{{ matrix_postgres_docker_image_v13 }}"
61+
when: "matrix_postgres_detected_version == '13' or matrix_postgres_detected_version.startswith('13.')"

0 commit comments

Comments
 (0)