From efacdf924df8fb2de500217f9d5b816910bcfd13 Mon Sep 17 00:00:00 2001 From: t3hmrman Date: Tue, 12 Dec 2023 13:38:39 +0000 Subject: [PATCH] release: pg_idkit 0.2.0 Signed-off-by: GitHub --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/workflows/release.yaml | 1 - CHANGELOG | 15 +++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 14 +++++++------- README.md | 22 +++++++++++----------- 6 files changed, 35 insertions(+), 21 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index aa0e946..e7fed8b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -15,7 +15,7 @@ Explain the issue you have encountered while using `pg_idkit`. Under what condit | Context | Value | |--------------------|---------------| | Postgres version | (ex. `14.5`) | -| `pg_idkit` version | (ex. `0.1.0`) | +| `pg_idkit` version | (ex. `0.2.0`) | Please explain as much context as possible around the bug in addition to the information above. diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 04088d4..9957f26 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,7 +52,6 @@ jobs: - name: Create release uses: softprops/action-gh-release@v1 with: - body_path: CHANGELOG prerelease: ${{ startsWith(github.ref, 'refs/heads/prep-release') }} draft: true generate_release_notes: true diff --git a/CHANGELOG b/CHANGELOG index 52577c5..0770a49 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,21 @@ # Changelog All notable changes to this project will be documented in this file. +## [0.2.0] - 2023-12-12 + +### Bug Fixes + +- Test workflow matrix +- Dockerfile creation +- Dockerfile path for pg_idkit build +- Build & test args +- Run in container for basic testing +- Add GNU coreutils to base-pkg image + +### Features + +- Support pg16 + ## [0.1.0] - 2023-12-09 ### Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index 044c0da..ebe2c0c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1253,7 +1253,7 @@ dependencies = [ [[package]] name = "pg_idkit" -version = "0.1.0" +version = "0.2.0" dependencies = [ "base36", "chrono", diff --git a/Cargo.toml b/Cargo.toml index ad70880..482b6c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pg_idkit" -version = "0.1.0" +version = "0.2.0" edition = "2021" authors = ["Victor Adossi "] license = "MIT" @@ -65,7 +65,7 @@ assets = [] [package.metadata.generate-rpm.variants.pg11] assets = [ { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" }, - { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.1.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.1.0.sql", mode = "755" }, + { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.0.sql", mode = "755" }, { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" }, ] requires = { postgresql-server = "> 11", glibc = "*" } @@ -74,7 +74,7 @@ release = "pg11" [package.metadata.generate-rpm.variants.pg12] assets = [ { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" }, - { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.1.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.1.0.sql", mode = "755" }, + { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.0.sql", mode = "755" }, { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" }, ] requires = { postgresql-server = "> 12", glibc = "*" } @@ -83,7 +83,7 @@ release = "pg12" [package.metadata.generate-rpm.variants.pg13] assets = [ { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" }, - { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.1.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.1.0.sql", mode = "755" }, + { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.0.sql", mode = "755" }, { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" }, ] requires = { postgresql-server = "> 13", glibc = "*" } @@ -92,7 +92,7 @@ release = "pg13" [package.metadata.generate-rpm.variants.pg14] assets = [ { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" }, - { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.1.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.1.0.sql", mode = "755" }, + { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.0.sql", mode = "755" }, { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" }, ] requires = { postgresql-server = "> 14", glibc = "*" } @@ -101,7 +101,7 @@ release = "pg14" [package.metadata.generate-rpm.variants.pg15] assets = [ { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" }, - { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.1.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.1.0.sql", mode = "755" }, + { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.0.sql", mode = "755" }, { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" }, ] requires = { postgresql-server = "> 15", glibc = "*" } @@ -110,7 +110,7 @@ release = "pg15" [package.metadata.generate-rpm.variants.pg16] assets = [ { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" }, - { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.1.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.1.0.sql", mode = "755" }, + { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.0.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.0.sql", mode = "755" }, { source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" }, ] requires = { postgresql-server = "> 15", glibc = "*" } diff --git a/README.md b/README.md index 40b6f69..8d43177 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ docker run \ -e POSTGRES_PASSWORD=replace_this \ -p 5432 \ --name pg_idkit \ - ghcr.io/vadosware/pg_idkit:0.1.0-pg16.1-alpine3.18-amd64 + ghcr.io/vadosware/pg_idkit:0.2.0-pg16.1-alpine3.18-amd64 ``` > [!WARNING] @@ -76,7 +76,7 @@ Once the postgres server is running, open another shell and connect to the docke ```console ➜ docker exec -it pg_idkit psql -U postgres -psql (15.5) +psql (16.1) Type "help" for help. postgres=# CREATE EXTENSION pg_idkit; @@ -110,7 +110,7 @@ target/release/pg_idkit-pg16 ├── home │   └── │   └── .pgrx -│   └── 15.5 +│   └── 16.1 │   └── pgrx-install │   ├── lib │   │   └── postgresql @@ -118,7 +118,7 @@ target/release/pg_idkit-pg16 │   └── share │   └── postgresql │   └── extension -│   ├── pg_idkit--0.1.0.sql +│   ├── pg_idkit--0.2.0.sql │   └── pg_idkit.control └── usr ├── lib @@ -136,9 +136,9 @@ As the installation of the extension into a specific version of postgres uses yo In the example above, the [files you need for a Postgres extension][pg-ext-files] are: -- `target/release/home//.pgrx/15.5/pgrx-install/lib/postgresql/pg_idkit.so` -- `target/release/home//.pgrx/15.5/pgrx-install/share/postgresql/extension/pg_idkit--0.1.0.sql` -- `target/release/home//.pgrx/15.5/pgrx-install/share/postgresql/extension/pg_idkit.control` +- `target/release/home//.pgrx/16.1/pgrx-install/lib/postgresql/pg_idkit.so` +- `target/release/home//.pgrx/16.1/pgrx-install/share/postgresql/extension/pg_idkit--0.2.0.sql` +- `target/release/home//.pgrx/16.1/pgrx-install/share/postgresql/extension/pg_idkit.control` Install these files in the relevant folders for your Postgres installation -- note that exactly where these files should go can can differ across linux distributions and containerized environments. @@ -184,14 +184,14 @@ docker run \ -e POSTGRES_PASSWORD=replace_this \ -p 5432 \ --name pg_idkit \ - ghcr.io/vadosware/pg_idkit:0.1.0-pg16.1-alpine3.18-amd64 + ghcr.io/vadosware/pg_idkit:0.2.0-pg16.1-alpine3.18-amd64 ``` From another terminal, you can exec into the `pg_idkit` container and enable `pg_idkit`: ```console ➜ docker exec -it pg_idkit psql -U postgres -psql (15.5) +psql (16.1) Type "help" for help. postgres=# CREATE EXTENSION pg_idkit; @@ -221,10 +221,10 @@ RPMs are produced upon [every official release](/releases) of `pg_idkit`. Grab a released version of the RPM (or build one yourself by running `just build-rpm` after [setting up local development][guide-localdev]). -For example, with an RPM named `pg_idkit-0.1.0-pg16.x86_64.rpm`, you should be able to run: +For example, with an RPM named `pg_idkit-0.2.0-pg16.x86_64.rpm`, you should be able to run: ``` -dnf install pg_idkit-0.1.0-pg16.x86_64.rpm +dnf install pg_idkit-0.2.0-pg16.x86_64.rpm ```