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

update postgres major version to 16 #62

Merged
merged 10 commits into from
Apr 29, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
test:
strategy:
matrix:
stack: [heroku-18, heroku-20, heroku-22]
pg_version: ["", "9.6", "10", "11", "11.7", "12", "13", "14", "15"]
stack: [heroku-20, heroku-22]
pg_version: ["", "12", "13", "14", "15", "16"]
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 2 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ BUILDPACK_DIR="$(dirname $(dirname $0))"

# config
S3_BUCKET="ci-database-binary"
POSTGRESQL_MAJOR_VERSION=15
POSTGRESQL_MAJOR_VERSION=16
if [ -f "$ENV_DIR/POSTGRESQL_VERSION" ]
then
POSTGRESQL_MAJOR_VERSION="$(cat $ENV_DIR/POSTGRESQL_VERSION)"
fi

case "$POSTGRESQL_MAJOR_VERSION" in
16) POSTGRESQL_VERSION="16.2";;
15) POSTGRESQL_VERSION="15.2";;
14) POSTGRESQL_VERSION="14.5";;
13) POSTGRESQL_VERSION="13.8";;
Expand Down
4 changes: 1 addition & 3 deletions support/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ FROM $BASE_IMAGE
ARG STACK_FOLDER
ENV STACK_FOLDER=$STACK_FOLDER

MAINTAINER gregburek

RUN apt-get -q update
RUN apt-get -q -y install curl gcc g++ make wget unzip build-essential libreadline-dev zlib1g-dev flex bison libkrb5-dev libssl-dev libxml2-dev libxslt1-dev
RUN apt-get -q -y install curl gcc g++ make wget unzip build-essential libreadline-dev zlib1g-dev flex bison libkrb5-dev libssl-dev libxml2-dev libxslt1-dev pkg-config

RUN wget -q https://github.com/rlmcpherson/s3gof3r/releases/download/v0.5.0/gof3r_0.5.0_linux_amd64.tar.gz
RUN tar zxf gof3r_0.5.0_linux_amd64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion support/build-postgresql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi

for PGSQL_VERSION in "${PGSQL_VERSIONS[@]}"; do
PGSQL_VERSION=$(echo "$PGSQL_VERSION" | tr -d '[:space:]') # '12.2 ' -> '12.2'
for stack in heroku-{18,20,22}; do
for stack in heroku-{20,22}; do
echo "Building PG $PGSQL_VERSION for $stack..."
BASE_IMAGE="heroku/${stack/-/:}" # heroku-22 -> heroku/heroku:22
docker build \
Expand Down
2 changes: 1 addition & 1 deletion support/pg_versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.6.24;10.22;11.17;12.12;13.8;14.5;15.2
12.12;13.8;14.5;15.2;16.2
Loading