From c6f929b7cf3572383ffebd309a18099cd0ef590d Mon Sep 17 00:00:00 2001 From: Lucas Gameiro Borges Date: Tue, 26 Nov 2024 13:01:26 +0000 Subject: [PATCH] use pg 16 snap --- .github/workflows/release.yaml | 2 +- rockcraft.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 986b76a..3be4cee 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,7 @@ concurrency: on: push: branches: - - 14-22.04 + - 16-24.04 paths: - rockcraft.yaml workflow_dispatch: diff --git a/rockcraft.yaml b/rockcraft.yaml index 10df894..4c347ac 100644 --- a/rockcraft.yaml +++ b/rockcraft.yaml @@ -1,6 +1,6 @@ name: charmed-postgresql -base: ubuntu@22.04 -version: '14.13' +base: ubuntu@24.04 +version: '16.4' summary: PostgreSQL in a rock. description: | The PostgreSQL rock is created using the @@ -16,7 +16,7 @@ parts: postgresql-snap: plugin: nil stage-snaps: - - charmed-postgresql/14/edge + - charmed-postgresql/16/edge stage-packages: - python3 overlay-packages: @@ -59,7 +59,7 @@ parts: mkdir -p $CRAFT_PRIME/usr/share/rocks echo "# os-release" > $CRAFT_PRIME/usr/share/rocks/dpkg.query cat \ - ${CRAFT_PROJECT_DIR}/../bundles/ubuntu-22.04/rootfs/etc/os-release \ + ${CRAFT_PROJECT_DIR}/../bundles/ubuntu-24.04/rootfs/etc/os-release \ >> $CRAFT_PRIME/usr/share/rocks/dpkg.query echo "# dpkg-query" >> $CRAFT_PRIME/usr/share/rocks/dpkg.query declare -a fields @@ -73,7 +73,7 @@ parts: --root=${CRAFT_PROJECT_DIR}/../parts/postgresql-snap/layer/ \ >> $CRAFT_PRIME/usr/share/rocks/dpkg.query # PostgreSQL extensions - pushd "${CRAFT_PRIME}/usr/share/postgresql/14/extension" + pushd "${CRAFT_PRIME}/usr/share/postgresql/16/extension" ln -f postgis-3.control postgis.control ln -f address_standardizer-3.control \ address_standardizer.control