File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323jobs :
2424 build :
25-
25+ strategy :
26+ matrix :
27+ version : [13, 14]
2628 runs-on : ubuntu-latest
2729 permissions :
2830 contents : read
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
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 }}
Original file line number Diff line number Diff 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
1518This project is licensed under the Apache-2.0 license, see [ LICENSE] ( LICENSE ) .
You can’t perform that action at this time.
0 commit comments