File tree Expand file tree Collapse file tree 4 files changed +44
-3
lines changed Expand file tree Collapse file tree 4 files changed +44
-3
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,27 @@ platform:
88 arch : arm64
99
1010steps :
11- - name : build
11+ - name : build-14
1212 image : ghcr.io/codestation/drone-kaniko
1313 settings :
1414 registry : registry.megpoid.dev
1515 repo : registry.megpoid.dev/codestation/postgres
1616 dockerfile : 14/Dockerfile
1717 tags :
1818 - 14
19+ username :
20+ from_secret : docker_username
21+ password :
22+ from_secret : docker_password
23+
24+ - name : build-16
25+ image : ghcr.io/codestation/drone-kaniko
26+ settings :
27+ registry : registry.megpoid.dev
28+ repo : registry.megpoid.dev/codestation/postgres
29+ dockerfile : 16/Dockerfile
30+ tags :
31+ - 16
1932 - latest
2033 username :
2134 from_secret : docker_username
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM postgres:14-bookworm
33LABEL maintainer="codestation <codestation@megpoid.dev>"
44
55ARG BACKREST_VERSION=2.51
6- ARG S6_OVERLAY_VERSION=3.1.5.0
6+ ARG S6_OVERLAY_VERSION=3.1.6.2
77
88# Install pgbackrest
99RUN set -ex; \
Original file line number Diff line number Diff line change 1+ FROM postgres:16-bookworm
2+
3+ LABEL maintainer="codestation <codestation@megpoid.dev>"
4+
5+ ARG BACKREST_VERSION=2.51
6+ ARG S6_OVERLAY_VERSION=3.1.6.2
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" ]
Original file line number Diff line number Diff line change 11## Postgres images
22
3- Postgres 14 images with pgbackrest 2.43 installed.
3+ Postgres 14/16 images with pgbackrest 2.51 installed.
You can’t perform that action at this time.
0 commit comments