Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG 15 support fix #48

Merged
merged 1 commit into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
build-args: |
PG_VERSION=14.6
PG_MAJOR_VERSION=14
VERSION=${{ steps.get-latest-tag.outputs.tag }}
context: .
file: ./Dockerfile
Expand All @@ -52,6 +53,7 @@ jobs:
with:
build-args: |
PG_VERSION=15.1
PG_MAJOR_VERSION=15
VERSION=${{ steps.get-latest-tag.outputs.tag }}
context: .
file: ./Dockerfile
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG PG_VERSION=14.6
ARG PG_VERSION=15.1
ARG PG_MAJOR_VERSION=15
ARG VERSION=custom

FROM golang:1.19 as flyutil
Expand All @@ -20,14 +21,15 @@ FROM wrouesnel/postgres_exporter:latest AS postgres_exporter
FROM postgres:${PG_VERSION}
ENV PGDATA=/data/postgresql
ARG VERSION
ARG PG_MAJOR_VERSION

LABEL fly.app_role=postgres_cluster
LABEL fly.version=${VERSION}
LABEL fly.pg-version=${PG_VERSION}
LABEL fly.pg-manager=repmgr

RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates iproute2 postgresql-14-repmgr curl bash dnsutils vim procps jq pgbouncer \
ca-certificates iproute2 postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim procps jq pgbouncer \
&& apt autoremove -y

COPY --from=0 /fly/bin/* /usr/local/bin
Expand Down