Skip to content

Commit ec5946e

Browse files
authored
Add postgresql 14 (#5)
1 parent beae908 commit ec5946e

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ env:
2222

2323
jobs:
2424
build:
25-
25+
strategy:
26+
matrix:
27+
version: [13, 14]
2628
runs-on: ubuntu-latest
2729
permissions:
2830
contents: read
@@ -65,8 +67,9 @@ jobs:
6567
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
6668
with:
6769
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
68-
flavor: |
69-
latest=true
70+
tags: |
71+
type=raw,value=latest,enable=${{ matrix.version == '14'}}
72+
${{ matrix.version }}
7073
7174
# Build and push Docker image with Buildx (don't push on PR)
7275
# https://github.com/docker/build-push-action
@@ -75,6 +78,8 @@ jobs:
7578
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
7679
with:
7780
context: .
81+
build-args: |
82+
POSTGRESQL_VERSION=${{ matrix.version }}
7883
platforms: linux/amd64,linux/arm64
7984
push: ${{ github.event_name != 'pull_request' }}
8085
tags: ${{ steps.meta.outputs.tags }}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ It pushes a nightly latest image to ghcr.io
77
## Usage
88

99
```
10-
docker run ghcr.io/dbsystel/postgresql-partman:latest
10+
docker run ghcr.io/dbsystel/postgresql-partman:13
11+
docker run ghcr.io/dbsystel/postgresql-partman:14
1112
```
1213

14+
The tags represent the postgresql major version. They will contain the latest available pg_partman version that was available at build time.
15+
1316
## License
1417

1518
This project is licensed under the Apache-2.0 license, see [LICENSE](LICENSE).

0 commit comments

Comments
 (0)