1
0

bump postgres

This commit is contained in:
nicolas.dorier
2023-03-10 09:21:59 +09:00
parent 6d38d64328
commit 68984cba53
3 changed files with 11 additions and 11 deletions

View File

@@ -1160,18 +1160,18 @@ cd - && cd ..
# Build postgres
# https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Postgres/13.7/Postgres/13.7/linuxamd64.Dockerfile
DOCKERFILE="Postgres/13.7/linuxamd64.Dockerfile"
# https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Postgres/13.7/Postgres/13.7/linuxarm32v7.Dockerfile
[[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="Postgres/13.7/linuxarm32v7.Dockerfile"
# https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Postgres/13.7/Postgres/13.7/linuxarm64v8.Dockerfile
[[ "$(uname -m)" == "aarch64" ]] && DOCKERFILE="Postgres/13.7/linuxarm64v8.Dockerfile"
echo "Building btcpayserver/postgres:13.7"
# https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Postgres/13.10/Postgres/13.10/linuxamd64.Dockerfile
DOCKERFILE="Postgres/13.10/linuxamd64.Dockerfile"
# https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Postgres/13.10/Postgres/13.10/linuxarm32v7.Dockerfile
[[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="Postgres/13.10/linuxarm32v7.Dockerfile"
# https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Postgres/13.10/Postgres/13.10/linuxarm64v8.Dockerfile
[[ "$(uname -m)" == "aarch64" ]] && DOCKERFILE="Postgres/13.10/linuxarm64v8.Dockerfile"
echo "Building btcpayserver/postgres:13.10"
git clone https://github.com/btcpayserver/dockerfile-deps postgres
cd postgres
git checkout Postgres/13.7
git checkout Postgres/13.10
cd "$(dirname $DOCKERFILE)"
docker build -f "$DOCKERFILE" -t "btcpayserver/postgres:13.7" .
docker build -f "$DOCKERFILE" -t "btcpayserver/postgres:13.10" .
cd - && cd ..