Skip to content

Commit 98f917b

Browse files
authored
v3.0.0 (#94)
**Complete rewrite using [nushell](https://nushell.sh)** ## Major updates and breaking changes * To enter nushell do `docker exec -it container_name nu` and type `bf-postgresql + tab` to see a complete list of functions * All environment variables now begin `BF_PG` ## Minor updates * Updating to PostgreSQL 12.17, 13.13, 14.10 and 15.5 ## Build updates * Updating workflows to latest versions * Using -dev instead of -beta for development builds ## Development updates * Enforcing LF line endings
1 parent 4f8ca12 commit 98f917b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+607
-649
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Always use LF endings.
2+
* text eol=lf

.github/workflows/auto-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
-
1212
name: Checkout Branch ${{ github.ref_name }}
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
-
1515
name: Create Pull Request
1616
uses: bfren/pull-request@v2

.github/workflows/dev.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
build:
1717
strategy:
1818
fail-fast: false
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
-
2424
name: Checkout code
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
-
2727
name: Get repository name
2828
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -35,20 +35,20 @@ jobs:
3535
id: version
3636
-
3737
name: Set up QEMU
38-
uses: docker/setup-qemu-action@v2
38+
uses: docker/setup-qemu-action@v3
3939
-
4040
name: Set up Docker Buildx
41-
uses: docker/setup-buildx-action@v2
41+
uses: docker/setup-buildx-action@v3
4242
-
4343
name: Login to DockerHub
44-
uses: docker/login-action@v2
44+
uses: docker/login-action@v3
4545
with:
4646
username: ${{ secrets.DOCKERHUB_USERNAME }}
4747
password: ${{ secrets.DOCKERHUB_TOKEN }}
4848
-
4949
name: Build and push
5050
id: docker_build
51-
uses: docker/build-push-action@v4
51+
uses: docker/build-push-action@v5
5252
with:
5353
context: .
5454
file: ./${{ matrix.postgresql }}/Dockerfile
@@ -59,7 +59,7 @@ jobs:
5959
platforms: linux/amd64,linux/arm/v7,linux/arm64
6060
tags: |
6161
bfren/postgresql:postgresql${{ matrix.postgresql }}-dev
62-
bfren/postgresql:postgresql${{ matrix.postgresql }}-${{ steps.version.outputs.contents }}-beta
62+
bfren/postgresql:postgresql${{ matrix.postgresql }}-${{ steps.version.outputs.contents }}-dev
6363
-
6464
name: Image digest
6565
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
-
1717
name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
-
2020
name: Get repository name
2121
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -46,20 +46,20 @@ jobs:
4646
id: version
4747
-
4848
name: Set up QEMU
49-
uses: docker/setup-qemu-action@v2
49+
uses: docker/setup-qemu-action@v3
5050
-
5151
name: Set up Docker Buildx
52-
uses: docker/setup-buildx-action@v2
52+
uses: docker/setup-buildx-action@v3
5353
-
5454
name: Login to DockerHub
55-
uses: docker/login-action@v2
55+
uses: docker/login-action@v3
5656
with:
5757
username: ${{ secrets.DOCKERHUB_USERNAME }}
5858
password: ${{ secrets.DOCKERHUB_TOKEN }}
5959
-
6060
name: Build and push
6161
id: docker_build
62-
uses: docker/build-push-action@v4
62+
uses: docker/build-push-action@v5
6363
with:
6464
context: .
6565
file: ./${{ matrix.postgresql }}/Dockerfile

.github/workflows/update-readme.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
shell: bash
1616
-
1717
name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
-
2020
name: Login to DockerHub
21-
uses: docker/login-action@v2
21+
uses: docker/login-action@v3
2222
with:
2323
username: ${{ secrets.DOCKERHUB_USERNAME }}
2424
password: ${{ secrets.DOCKERHUB_TOKEN }}

12/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
FROM bfren/alpine-s6:alpine3.18-4.5.9
1+
FROM bfren/alpine-s6:alpine3.18-5.0.5
22

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

55
ARG BF_IMAGE
66
ARG BF_VERSION
77

8-
ENV \
9-
# set to "1" to compress backup sql files
10-
POSTGRESQL_BACKUP_COMPRESS_FILES="0" \
11-
# the number of days after which backups will be deleted
12-
POSTGRESQL_BACKUP_KEEP_FOR_DAYS="28"
13-
148
EXPOSE 5432
159

1610
COPY ./overlay /
1711
COPY ./12/overlay /
1812

13+
ENV \
14+
# set to "1" to compress backup sql files
15+
BF_PG_BACKUP_COMPRESS_FILES="0" \
16+
# the duration for which backups will be kept
17+
BF_PG_BACKUP_KEEP_FOR="28day"
18+
1919
RUN bf-install
2020

21-
VOLUME [ "/data", "/backup" ]
21+
VOLUME [ "/backup", "/data" ]

12/overlay/tmp/POSTGRESQL_BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16-r0
1+
12.17-r0

12/overlay/tmp/POSTGRESQL_MINOR

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16
1+
12.17

13/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
FROM bfren/alpine-s6:alpine3.18-4.5.9
1+
FROM bfren/alpine-s6:alpine3.18-5.0.5
22

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

55
ARG BF_IMAGE
66
ARG BF_VERSION
77

8-
ENV \
9-
# set to "1" to compress backup sql files
10-
POSTGRESQL_BACKUP_COMPRESS_FILES="0" \
11-
# the number of days after which backups will be deleted
12-
POSTGRESQL_BACKUP_KEEP_FOR_DAYS="28"
13-
148
EXPOSE 5432
159

1610
COPY ./overlay /
1711
COPY ./13/overlay /
1812

13+
ENV \
14+
# set to "1" to compress backup sql files
15+
BF_PG_BACKUP_COMPRESS_FILES="0" \
16+
# the duration for which backups will be kept
17+
BF_PG_BACKUP_KEEP_FOR="28day"
18+
1919
RUN bf-install
2020

21-
VOLUME [ "/data", "/backup" ]
21+
VOLUME [ "/backup", "/data" ]

13/overlay/tmp/POSTGRESQL_BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13.12-r0
1+
13.13-r0

0 commit comments

Comments
 (0)