Skip to content

Commit ae7315b

Browse files
authored
v1.3.0 (#13)
Major updates * Using latest base images * Add version check - if you run a new image on old data you will be prompted to run an upgrade Build updates * Adding image name / version to builds Documentation updates * Improving formatting of README
1 parent 7ea5c94 commit ae7315b

File tree

14 files changed

+82
-10
lines changed

14 files changed

+82
-10
lines changed

.github/workflows/dev-12.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
-
2222
name: Checkout code
2323
uses: actions/checkout@v2
24+
-
25+
name: Get repository name
26+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
27+
shell: bash
2428
-
2529
name: Read image version
2630
uses: bfren/read-file@v1
@@ -46,6 +50,9 @@ jobs:
4650
with:
4751
context: .
4852
file: ./12/Dockerfile
53+
build-args: |
54+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
55+
BF_VERSION=${{ steps.version.outputs.contents }}
4956
push: ${{ startsWith(github.ref, 'refs/heads/') }}
5057
platforms: linux/amd64,linux/arm/v7,linux/arm64
5158
tags: |

.github/workflows/dev-13.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
-
2222
name: Checkout code
2323
uses: actions/checkout@v2
24+
-
25+
name: Get repository name
26+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
27+
shell: bash
2428
-
2529
name: Read image version
2630
uses: bfren/read-file@v1
@@ -46,6 +50,9 @@ jobs:
4650
with:
4751
context: .
4852
file: ./13/Dockerfile
53+
build-args: |
54+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
55+
BF_VERSION=${{ steps.version.outputs.contents }}
4956
push: ${{ startsWith(github.ref, 'refs/heads/') }}
5057
platforms: linux/amd64,linux/arm/v7,linux/arm64
5158
tags: |

.github/workflows/dev-14.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
-
2222
name: Checkout code
2323
uses: actions/checkout@v2
24+
-
25+
name: Get repository name
26+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
27+
shell: bash
2428
-
2529
name: Read image version
2630
uses: bfren/read-file@v1
@@ -46,6 +50,9 @@ jobs:
4650
with:
4751
context: .
4852
file: ./14/Dockerfile
53+
build-args: |
54+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
55+
BF_VERSION=${{ steps.version.outputs.contents }}
4956
push: ${{ startsWith(github.ref, 'refs/heads/') }}
5057
platforms: linux/amd64,linux/arm/v7,linux/arm64
5158
tags: |

.github/workflows/publish-12.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
-
1313
name: Checkout code
1414
uses: actions/checkout@v2
15+
-
16+
name: Get repository name
17+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
18+
shell: bash
1519
-
1620
name: Read PostgreSQL version - minor
1721
uses: bfren/read-file@v1
@@ -61,6 +65,9 @@ jobs:
6165
with:
6266
context: .
6367
file: ./12/Dockerfile
68+
build-args: |
69+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
70+
BF_VERSION=${{ steps.version.outputs.contents }}
6471
push: true
6572
platforms: linux/amd64,linux/arm/v7,linux/arm64
6673
tags: |

.github/workflows/publish-13.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
-
1313
name: Checkout code
1414
uses: actions/checkout@v2
15+
-
16+
name: Get repository name
17+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
18+
shell: bash
1519
-
1620
name: Read PostgreSQL version - minor
1721
uses: bfren/read-file@v1
@@ -61,6 +65,9 @@ jobs:
6165
with:
6266
context: .
6367
file: ./13/Dockerfile
68+
build-args: |
69+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
70+
BF_VERSION=${{ steps.version.outputs.contents }}
6471
push: true
6572
platforms: linux/amd64,linux/arm/v7,linux/arm64
6673
tags: |

.github/workflows/publish-14.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
-
1313
name: Checkout code
1414
uses: actions/checkout@v2
15+
-
16+
name: Get repository name
17+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
18+
shell: bash
1519
-
1620
name: Read PostgreSQL version - minor
1721
uses: bfren/read-file@v1
@@ -61,6 +65,9 @@ jobs:
6165
with:
6266
context: .
6367
file: ./14/Dockerfile
68+
build-args: |
69+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
70+
BF_VERSION=${{ steps.version.outputs.contents }}
6471
push: true
6572
platforms: linux/amd64,linux/arm/v7,linux/arm64
6673
tags: |

12/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM bfren/alpine-s6:alpine3.15-3.0.2
1+
FROM bfren/alpine-s6:alpine3.15-3.1.1
2+
3+
ARG BF_IMAGE
4+
ARG BF_VERSION
25

36
ENV \
47
# set to "1" to compress backup sql files

13/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM bfren/alpine-s6:alpine3.15-3.0.2
1+
FROM bfren/alpine-s6:alpine3.15-3.1.1
2+
3+
ARG BF_IMAGE
4+
ARG BF_VERSION
25

36
ENV \
47
# set to "1" to compress backup sql files

14/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM bfren/alpine-s6:alpine3.15-3.0.2
1+
FROM bfren/alpine-s6:alpine3.15-3.1.1
2+
3+
ARG BF_IMAGE
4+
ARG BF_VERSION
25

36
ENV \
47
# set to "1" to compress backup sql files

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ See [For Backups](#for-backups) for configuration variables.
4848

4949
### For Database
5050

51-
| Variable | Values | Description | Default |
52-
| ----------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ----------------- |
53-
| `POSTGRESQL_USERNAME` | string | Application username - will be used as database name if `POSTGRESQL_DATABASE` is not set. | *None* - required |
54-
| `POSTGRESQL_PASSWORD` | string | Application password. | *None* - required |
55-
| `POSTGRESQL_DATABASE` | string | Database name(s) - multiple databases can be separated by a comma. | *None* |
51+
| Variable | Values | Description | Default |
52+
| --------------------- | ------ | ----------------------------------------------------------------------------------------- | ----------------- |
53+
| `POSTGRESQL_USERNAME` | string | Application username - will be used as database name if `POSTGRESQL_DATABASE` is not set. | *None* - required |
54+
| `POSTGRESQL_PASSWORD` | string | Application password. | *None* - required |
55+
| `POSTGRESQL_DATABASE` | string | Database name(s) - multiple databases can be separated by a comma. | *None* |
5656

5757
## Helper Functions
5858

0 commit comments

Comments
 (0)