Skip to content

Commit 34912d3

Browse files
authored
v2.3.3 (#66)
Minor updates * Using latest base images * Fixing healthcheck on error * Using extended argument names Build updates * Updating auto release workflow Documentation updates * Fixing workflow shields
1 parent ab7efd3 commit 34912d3

File tree

11 files changed

+12
-13
lines changed

11 files changed

+12
-13
lines changed

.github/workflows/auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
steps:
1212
-
1313
name: Create Release ${{ github.event.pull_request.title }}
14-
uses: bfren/create-release@v2
14+
uses: bfren/create-release@v3
1515
with:
1616
token: ${{ secrets.PAT }}

12/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/alpine-s6:alpine3.17-4.4.2
1+
FROM bfren/alpine-s6:alpine3.17-4.4.3
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"
44

13/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/alpine-s6:alpine3.17-4.4.2
1+
FROM bfren/alpine-s6:alpine3.17-4.4.3
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"
44

14/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/alpine-s6:alpine3.17-4.4.2
1+
FROM bfren/alpine-s6:alpine3.17-4.4.3
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"
44

15/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/alpine-s6:alpine3.17-4.4.2
1+
FROM bfren/alpine-s6:alpine3.17-4.4.3
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"
44

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Docker PostgreSQL
22

3-
![GitHub release (latest by date)](https://img.shields.io/github/v/release/bfren/docker-postgresql) ![Docker Pulls](https://img.shields.io/endpoint?url=https%3A%2F%2Fbfren.dev%2Fdocker%2Fpulls%2Fpostgresql) ![Docker Image Size](https://img.shields.io/endpoint?url=https%3A%2F%2Fbfren.dev%2Fdocker%2Fsize%2Fpostgresql)<br/>
4-
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/bfren/docker-postgresql/dev-12?label=PostgreSQL+12) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/bfren/docker-postgresql/dev-13?label=PostgreSQL+13) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/bfren/docker-postgresql/dev-14?label=PostgreSQL+14) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/bfren/docker-postgresql/dev-15?label=PostgreSQL+15)
3+
![GitHub release (latest by date)](https://img.shields.io/github/v/release/bfren/docker-postgresql) ![Docker Pulls](https://img.shields.io/endpoint?url=https%3A%2F%2Fbfren.dev%2Fdocker%2Fpulls%2Fpostgresql) ![Docker Image Size](https://img.shields.io/endpoint?url=https%3A%2F%2Fbfren.dev%2Fdocker%2Fsize%2Fpostgresql) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/bfren/docker-postgresql/dev.yml?branch=main)
54

65
[Docker Repository](https://hub.docker.com/r/bfren/postgresql) - [bfren ecosystem](https://github.com/bfren/docker)
76

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.2
1+
2.3.3

generate-dockerfiles.sh

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

55
docker pull bfren/alpine
66

7-
BASE_REVISION="4.4.2"
7+
BASE_REVISION="4.4.3"
88
echo "Base: ${BASE_REVISION}"
99

1010
POSTGRESQL_VERSIONS="12 13 14 15"

overlay/usr/bin/bf/healthcheck

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export BF_E=`basename ${0}`
88
# Perform a basic sql command to check the server is running.
99
#======================================================================================================================
1010

11-
CHECK=$(psql -U postgres -c "SELECT 1;" 2>/dev/null | tail -n3 | head -n1 | xargs)
11+
CHECK=$(psql -U postgres -c "SELECT 1;" 2> /dev/null | tail -n3 | head -n1 | xargs || echo "0")
1212

1313
[[ "${CHECK}" == "1" ]] && exit 0
1414
exit 1

overlay/usr/lib/bf/postgresql/import

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for FILE in ${POSTGRESQL_BACKUP}/*.sql ; do
1818
EXISTS=$(db-exists "${DATABASE}")
1919
if [ "${EXISTS}" = "0" ] ; then
2020
bf-echo " .. creating '${DATABASE}'."
21-
createdb "${DATABASE}" -O "${POSTGRESQL_USERNAME}"\
21+
createdb "${DATABASE}" --owner="${POSTGRESQL_USERNAME}"\
2222
|| bf-notok " . something went wrong."
2323
fi
2424

0 commit comments

Comments
 (0)