Skip to content

Commit 6685998

Browse files
committed
add postgres 18 and upgrade pgbackrest
1 parent 9b3fc08 commit 6685998

File tree

7 files changed

+38
-10
lines changed

7 files changed

+38
-10
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
pg_version: [14, 15, 16, 17]
21+
pg_version: [14, 15, 16, 17, 18]
2222

2323
steps:
2424
- name: Checkout repository
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set latest tag
4848
run: |
4949
echo "Setting tags..."
50-
if [ "${{ matrix.pg_version }}" = "17" ]; then
50+
if [ "${{ matrix.pg_version }}" = "18" ]; then
5151
echo "LATEST_TAG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_ENV
5252
else
5353
echo "LATEST_TAG=" >> $GITHUB_ENV

.woodpecker/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ matrix:
44

55
steps:
66
build:
7-
image: woodpeckerci/plugin-docker-buildx:6.0.1
7+
image: woodpeckerci/plugin-docker-buildx:6.0.2
88
settings:
99
registry: registry.megpoid.dev
1010
repo: registry.megpoid.dev/codestation/postgres

14/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM postgres:14.18-bookworm
1+
FROM postgres:14.19-trixie
22

33
LABEL maintainer="codestation <codestation@megpoid.dev>"
44

5-
ARG BACKREST_VERSION=2.55.1
5+
ARG BACKREST_VERSION=2.56.0
66
ARG S6_OVERLAY_VERSION=3.2.1.0
77

88
# Install pgbackrest

15/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM postgres:15.13-bookworm
1+
FROM postgres:15.14-trixie
22

33
LABEL maintainer="codestation <codestation@megpoid.dev>"
44

5-
ARG BACKREST_VERSION=2.55.1
5+
ARG BACKREST_VERSION=2.56.0
66
ARG S6_OVERLAY_VERSION=3.2.1.0
77

88
# Install pgbackrest

17/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM postgres:17.5-bookworm
1+
FROM postgres:17.6-trixie
22

33
LABEL maintainer="codestation <codestation@megpoid.dev>"
44

5-
ARG BACKREST_VERSION=2.55.1
5+
ARG BACKREST_VERSION=2.56.0
66
ARG S6_OVERLAY_VERSION=3.2.1.0
77

88
# Install pgbackrest

18/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM postgres:18.0-trixie
2+
3+
LABEL maintainer="codestation <codestation@megpoid.dev>"
4+
5+
ARG BACKREST_VERSION=2.56.0
6+
ARG S6_OVERLAY_VERSION=3.2.1.0
7+
8+
# Install pgbackrest
9+
RUN set -ex; \
10+
apt-get update; \
11+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
12+
ca-certificates \
13+
curl \
14+
pgbackrest=${BACKREST_VERSION}-* \
15+
; \
16+
rm -rf /var/lib/apt/lists/*;
17+
18+
RUN set -ex; \
19+
curl -L https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz -o /tmp/s6-overlay-noarch.tar.xz ; \
20+
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz ;\
21+
rm /tmp/s6-overlay-noarch.tar.xz ;\
22+
curl -L https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-$(arch).tar.xz -o /tmp/s6-overlay-$(arch).tar.xz ; \
23+
tar -C / -Jxpf /tmp/s6-overlay-$(arch).tar.xz ;\
24+
rm /tmp/s6-overlay-$(arch).tar.xz
25+
26+
COPY services/ /etc/s6-overlay/s6-rc.d/
27+
28+
ENTRYPOINT ["/init"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Postgres images
22

3-
Postgres 14/15/16/17 images with pgbackrest 2.55 installed.
3+
Postgres 14/15/16/17/18 images with pgbackrest 2.56 installed.

0 commit comments

Comments
 (0)