Skip to content

Commit f027860

Browse files
committed
Update readme
1 parent 5bf4e4a commit f027860

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,17 @@ You can then run the image using the instructions above, replacing `<version>` w
111111
- The published Docker image tag will match the tag name, but without the leading `v`.
112112
- The major and minor part of the version number match the PostgreSQL version number, while the patch represents an iteration of the image.
113113
- Note: This versioning scheme is not strictly SemVer, but it should be safe to treat it as SemVer for most use cases.
114+
115+
## Updating the image
116+
117+
1. Update the version numbers in `.env`.
118+
- `BASE_IMAGE`: The base PostgreSQL version. Use the latest stable Alpine-based version found in [Docker Hub](https://hub.docker.com/_/postgres).
119+
- `POSTGIS_VERSION` and `POSTGIS_SHA256`: The PostGIS extension version and its SHA256 checksum. Use the same values that the latest official PostGIS Alpine-based image uses. The values can be found in the `docker-postgis` repository on GitHub (e.g., [psql 18.0 & postgis 3.6](https://github.com/postgis/docker-postgis/blob/master/18-3.6/alpine/Dockerfile).)
120+
- TIMESCALEDB_VERSION: The TimescaleDB extension version. Use the latest stable version found in the [TimescaleDB GitHub repository releases](https://github.com/timescale/timescaledb).
121+
2. Commit the changes and tag a new release with the appropriate version number (e.g., `v18.0.0`). Push to origin.
122+
```console
123+
git commit -am "Update versions"
124+
git tag vX.Y.Z
125+
git push origin main --tags
126+
```
127+
3. GitHub Actions will automatically build a Docker image from the tagged revision and push it to Docker Hub as `creowave/postgres:X.Y.Z`.

0 commit comments

Comments
 (0)