Skip to content

Commit e41e249

Browse files
feat: publish deb13 apt packages
Add deb13 support to the Pages package publishing flow so Debian 13 release assets are included in the generated APT repository metadata and exposed through the package finder and install docs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 83ba7e2 commit e41e249

6 files changed

Lines changed: 103 additions & 14 deletions

File tree

‎.github/scripts/download_packages.sh‎

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ GOT_RPM=0
2727
DEB_POOL="out/deb/pool/${COMPONENTS}"
2828
# Debian/Ubuntu pools
2929
DEB_POOL_DEB11="out/deb/pool/deb11"
30-
DEB_POOL_DEB12="out/deb/pool/deb12"
30+
DEB_POOL_DEB12="out/deb/pool/deb12"
31+
DEB_POOL_DEB13="out/deb/pool/deb13"
3132
DEB_POOL_UBUNTU22="out/deb/pool/ubuntu22"
3233
DEB_POOL_UBUNTU24="out/deb/pool/ubuntu24"
3334
# RPM pools
@@ -39,12 +40,14 @@ DEB_DISTS="dists/${SUITE}"
3940
DEB_DISTS_COMPONENTS_AMD64="${DEB_DISTS}/${COMPONENTS}/binary-amd64"
4041
DEB_DISTS_DEB11_AMD64="${DEB_DISTS}/deb11/binary-amd64"
4142
DEB_DISTS_DEB12_AMD64="${DEB_DISTS}/deb12/binary-amd64"
43+
DEB_DISTS_DEB13_AMD64="${DEB_DISTS}/deb13/binary-amd64"
4244
DEB_DISTS_UBUNTU22_AMD64="${DEB_DISTS}/ubuntu22/binary-amd64"
4345
DEB_DISTS_UBUNTU24_AMD64="${DEB_DISTS}/ubuntu24/binary-amd64"
4446
# ARM64 directories
4547
DEB_DISTS_COMPONENTS_ARM64="${DEB_DISTS}/${COMPONENTS}/binary-arm64"
4648
DEB_DISTS_DEB11_ARM64="${DEB_DISTS}/deb11/binary-arm64"
4749
DEB_DISTS_DEB12_ARM64="${DEB_DISTS}/deb12/binary-arm64"
50+
DEB_DISTS_DEB13_ARM64="${DEB_DISTS}/deb13/binary-arm64"
4851
DEB_DISTS_UBUNTU22_ARM64="${DEB_DISTS}/ubuntu22/binary-arm64"
4952
DEB_DISTS_UBUNTU24_ARM64="${DEB_DISTS}/ubuntu24/binary-arm64"
5053
GPG_TTY=""
@@ -54,7 +57,7 @@ generate_hashes() {
5457
HASH_TYPE="$1"
5558
HASH_COMMAND="$2"
5659
echo "${HASH_TYPE}:"
57-
for component in ${COMPONENTS} deb11 deb12 ubuntu22 ubuntu24; do
60+
for component in ${COMPONENTS} deb11 deb12 deb13 ubuntu22 ubuntu24; do
5861
if [ -d "$component" ]; then
5962
find "$component" -type f | while read -r file
6063
do
@@ -116,6 +119,12 @@ for asset in data.get('assets', []):
116119
clean_name=$(echo "$filename" | sed 's/^deb12-//')
117120
cp "out/packages/$filename" "$DEB_POOL_DEB12/$clean_name"
118121
sign_deb_package "$DEB_POOL_DEB12/$clean_name"
122+
elif [[ "$filename" =~ ^deb13-postgresql-[0-9]+-documentdb.*\.deb$ ]]; then
123+
GOT_DEB=1
124+
mkdir -p "$DEB_POOL_DEB13"
125+
clean_name=$(echo "$filename" | sed 's/^deb13-//')
126+
cp "out/packages/$filename" "$DEB_POOL_DEB13/$clean_name"
127+
sign_deb_package "$DEB_POOL_DEB13/$clean_name"
119128
elif [[ "$filename" =~ ^ubuntu22\.04-postgresql-[0-9]+-documentdb.*\.deb$ ]]; then
120129
GOT_DEB=1
121130
mkdir -p "$DEB_POOL_UBUNTU22"
@@ -209,6 +218,13 @@ if [ "$GOT_DEB" = "1" ]; then
209218
dpkg-scanpackages --arch arm64 pool/deb12/ > "${DEB_DISTS_DEB12_ARM64}/Packages"
210219
gzip -k -f "${DEB_DISTS_DEB12_AMD64}/Packages" "${DEB_DISTS_DEB12_ARM64}/Packages"
211220
fi
221+
222+
if [ -d "pool/deb13" ] && [ "$(ls -A pool/deb13/*.deb 2>/dev/null)" ]; then
223+
mkdir -p "${DEB_DISTS_DEB13_AMD64}" "${DEB_DISTS_DEB13_ARM64}"
224+
dpkg-scanpackages --arch amd64 pool/deb13/ > "${DEB_DISTS_DEB13_AMD64}/Packages"
225+
dpkg-scanpackages --arch arm64 pool/deb13/ > "${DEB_DISTS_DEB13_ARM64}/Packages"
226+
gzip -k -f "${DEB_DISTS_DEB13_AMD64}/Packages" "${DEB_DISTS_DEB13_ARM64}/Packages"
227+
fi
212228

213229
if [ -d "pool/ubuntu22" ] && [ "$(ls -A pool/ubuntu22/*.deb 2>/dev/null)" ]; then
214230
mkdir -p "${DEB_DISTS_UBUNTU22_AMD64}" "${DEB_DISTS_UBUNTU22_ARM64}"
@@ -253,6 +269,21 @@ if [ "$GOT_DEB" = "1" ]; then
253269
dpkg-scanpackages --arch arm64 pool/deb12/ > "${DEB_DISTS_DEB12_ARM64}/Packages"
254270
gzip -k -f "${DEB_DISTS_DEB12_ARM64}/Packages"
255271
fi
272+
273+
# Create deb13 component (Debian 13 Trixie)
274+
if [ -d "pool/deb13" ] && [ "$(ls -A pool/deb13/*.deb 2>/dev/null)" ]; then
275+
# AMD64 packages
276+
mkdir -p "${DEB_DISTS_DEB13_AMD64}"
277+
echo "Scanning Debian 13 AMD64 packages for deb13 component"
278+
dpkg-scanpackages --arch amd64 pool/deb13/ > "${DEB_DISTS_DEB13_AMD64}/Packages"
279+
gzip -k -f "${DEB_DISTS_DEB13_AMD64}/Packages"
280+
281+
# ARM64 packages
282+
mkdir -p "${DEB_DISTS_DEB13_ARM64}"
283+
echo "Scanning Debian 13 ARM64 packages for deb13 component"
284+
dpkg-scanpackages --arch arm64 pool/deb13/ > "${DEB_DISTS_DEB13_ARM64}/Packages"
285+
gzip -k -f "${DEB_DISTS_DEB13_ARM64}/Packages"
286+
fi
256287

257288
# Create ubuntu22 component (Ubuntu 22.04 Jammy)
258289
if [ -d "pool/ubuntu22" ] && [ "$(ls -A pool/ubuntu22/*.deb 2>/dev/null)" ]; then
@@ -292,14 +323,15 @@ if [ "$GOT_DEB" = "1" ]; then
292323
[ -d "${COMPONENTS}/binary-amd64" ] && AVAILABLE_COMPONENTS="${AVAILABLE_COMPONENTS} ${COMPONENTS}"
293324
[ -d "deb11/binary-amd64" ] && AVAILABLE_COMPONENTS="${AVAILABLE_COMPONENTS} deb11"
294325
[ -d "deb12/binary-amd64" ] && AVAILABLE_COMPONENTS="${AVAILABLE_COMPONENTS} deb12"
326+
[ -d "deb13/binary-amd64" ] && AVAILABLE_COMPONENTS="${AVAILABLE_COMPONENTS} deb13"
295327
[ -d "ubuntu22/binary-amd64" ] && AVAILABLE_COMPONENTS="${AVAILABLE_COMPONENTS} ubuntu22"
296328
[ -d "ubuntu24/binary-amd64" ] && AVAILABLE_COMPONENTS="${AVAILABLE_COMPONENTS} ubuntu24"
297329
AVAILABLE_COMPONENTS=$(echo $AVAILABLE_COMPONENTS | sed 's/^ *//')
298330

299331
# Determine available architectures
300332
AVAILABLE_ARCHITECTURES=""
301-
[ -d "${COMPONENTS}/binary-amd64" ] || [ -d "deb11/binary-amd64" ] || [ -d "deb12/binary-amd64" ] || [ -d "ubuntu22/binary-amd64" ] || [ -d "ubuntu24/binary-amd64" ] && AVAILABLE_ARCHITECTURES="${AVAILABLE_ARCHITECTURES} amd64"
302-
[ -d "${COMPONENTS}/binary-arm64" ] || [ -d "deb11/binary-arm64" ] || [ -d "deb12/binary-arm64" ] || [ -d "ubuntu22/binary-arm64" ] || [ -d "ubuntu24/binary-arm64" ] && AVAILABLE_ARCHITECTURES="${AVAILABLE_ARCHITECTURES} arm64"
333+
[ -d "${COMPONENTS}/binary-amd64" ] || [ -d "deb11/binary-amd64" ] || [ -d "deb12/binary-amd64" ] || [ -d "deb13/binary-amd64" ] || [ -d "ubuntu22/binary-amd64" ] || [ -d "ubuntu24/binary-amd64" ] && AVAILABLE_ARCHITECTURES="${AVAILABLE_ARCHITECTURES} amd64"
334+
[ -d "${COMPONENTS}/binary-arm64" ] || [ -d "deb11/binary-arm64" ] || [ -d "deb12/binary-arm64" ] || [ -d "deb13/binary-arm64" ] || [ -d "ubuntu22/binary-arm64" ] || [ -d "ubuntu24/binary-arm64" ] && AVAILABLE_ARCHITECTURES="${AVAILABLE_ARCHITECTURES} arm64"
303335
AVAILABLE_ARCHITECTURES=$(echo $AVAILABLE_ARCHITECTURES | sed 's/^ *//')
304336

305337
{

‎.github/workflows/continuous-deployment.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,48 @@ jobs:
7979
run: npm run build
8080
- name: Download DocumentDB packages from latest release
8181
run: .github/scripts/download_packages.sh
82+
- name: Verify generated package components
83+
run: |
84+
set -euo pipefail
85+
python3 - <<'PY'
86+
import json
87+
from pathlib import Path
88+
89+
release_info = Path("out/packages/release-info.json")
90+
if not release_info.exists():
91+
raise SystemExit("release-info.json was not generated")
92+
93+
data = json.loads(release_info.read_text())
94+
assets = [asset["name"] for asset in data.get("assets", [])]
95+
components = ("deb11", "deb12", "deb13", "ubuntu22", "ubuntu24")
96+
97+
for component in components:
98+
has_assets = any(
99+
name.endswith(".deb")
100+
and (
101+
name.startswith(f"{component}-")
102+
or name.startswith(f"{component}.04-")
103+
)
104+
for name in assets
105+
)
106+
if not has_assets:
107+
continue
108+
109+
for arch in ("amd64", "arm64"):
110+
packages = Path(f"out/deb/dists/stable/{component}/binary-{arch}/Packages")
111+
packages_gz = Path(f"out/deb/dists/stable/{component}/binary-{arch}/Packages.gz")
112+
if not packages.exists() or not packages_gz.exists():
113+
raise SystemExit(
114+
f"Missing APT metadata for {component} {arch}: "
115+
f"{packages} / {packages_gz}"
116+
)
117+
118+
release_file = Path("out/deb/dists/stable/Release")
119+
if release_file.exists() and any(name.startswith("deb13-") and name.endswith(".deb") for name in assets):
120+
release_text = release_file.read_text()
121+
if "deb13" not in release_text:
122+
raise SystemExit("deb13 assets exist but deb13 is missing from the APT Release file")
123+
PY
82124
- name: Upload artifact
83125
uses: actions/upload-pages-artifact@v3
84126
with:

‎PACKAGE-INSTALL.md‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ Verified installation commands for the DocumentDB PostgreSQL extension.
77
- Repository-backed installs were exercised in Docker on Ubuntu 22.04, Ubuntu 24.04, Debian 11, Debian 12, Rocky Linux 8, and Rocky Linux 9.
88
- Both `amd64`/`x86_64` and `arm64`/`aarch64` variants were checked.
99
- PostgreSQL package variants `16`, `17`, and `18` were resolved successfully for the supported repository-backed combinations, with one exception: Debian 11 currently resolves PostgreSQL `16` and `17` only.
10-
- Debian 13 `.deb` assets are published on GitHub Releases, but the APT repository does **not** currently publish a `deb13` component, so Debian 13 should use direct downloads for now.
10+
- Debian 13 `.deb` assets are published on GitHub Releases, and the APT repository now publishes a `deb13` component for repository-backed installs.
1111

1212
## Supported PostgreSQL Versions
1313

1414
- Ubuntu 22.04 / 24.04: 16, 17, 18
1515
- Debian 11: 16, 17
1616
- Debian 12: 16, 17, 18
17+
- Debian 13: 16, 17, 18
1718
- RHEL-family 8 / 9: 16, 17, 18
1819

1920
## Repository-backed package installs
@@ -72,6 +73,19 @@ sudo apt update && \
7273
sudo apt install -y postgresql-16-documentdb
7374
```
7475

76+
### Debian 13 (Trixie)
77+
78+
```bash
79+
sudo apt update && \
80+
sudo apt install -y curl ca-certificates gnupg && \
81+
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor --yes -o /usr/share/keyrings/postgresql.gpg && \
82+
echo "deb [signed-by=/usr/share/keyrings/postgresql.gpg] https://apt.postgresql.org/pub/repos/apt trixie-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list >/dev/null && \
83+
curl -fsSL https://documentdb.io/documentdb-archive-keyring.gpg | sudo gpg --dearmor --yes -o /usr/share/keyrings/documentdb-archive-keyring.gpg && \
84+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/documentdb-archive-keyring.gpg] https://documentdb.io/deb stable deb13" | sudo tee /etc/apt/sources.list.d/documentdb.list >/dev/null && \
85+
sudo apt update && \
86+
sudo apt install -y postgresql-16-documentdb
87+
```
88+
7589
### RHEL / Rocky / AlmaLinux / CentOS Stream 8
7690

7791
```bash
@@ -158,7 +172,6 @@ rhel9-postgresql18-documentdb-0.109.0-1.el9.x86_64.rpm
158172

159173
## Notes
160174

161-
- The APT repository currently publishes components for `ubuntu22`, `ubuntu24`, `deb11`, and `deb12`.
162-
- Debian 13 assets exist on GitHub Releases, but the APT repository component is not published yet.
175+
- The APT repository currently publishes components for `ubuntu22`, `ubuntu24`, `deb11`, `deb12`, and `deb13`.
163176
- Debian 11 PostgreSQL 18 assets exist, but the upstream Bullseye PostGIS dependency is not currently installable from PGDG.
164177
- The RPM flow depends on EPEL plus PostgreSQL's upstream RPM repository because DocumentDB depends on PostgreSQL, `pg_cron`, `pgvector`, PostGIS, and `rum`.

‎app/lib/packageInstall.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type AptDistro = "ubuntu22" | "ubuntu24" | "deb11" | "deb12";
1+
export type AptDistro = "ubuntu22" | "ubuntu24" | "deb11" | "deb12" | "deb13";
22
export type RpmDistro = "rhel8" | "rhel9";
33
export type AptArch = "amd64" | "arm64";
44
export type RpmArch = "x86_64" | "aarch64";
@@ -10,6 +10,7 @@ export const aptTargetLabels: Record<AptDistro, string> = {
1010
ubuntu24: "Ubuntu 24.04 (Noble)",
1111
deb11: "Debian 11 (Bullseye)",
1212
deb12: "Debian 12 (Bookworm)",
13+
deb13: "Debian 13 (Trixie)",
1314
};
1415

1516
export const rpmTargetLabels: Record<RpmDistro, string> = {
@@ -22,13 +23,15 @@ export const aptTargetPgVersions: Record<AptDistro, AptPgVersion[]> = {
2223
ubuntu24: ["16", "17", "18"],
2324
deb11: ["16", "17"],
2425
deb12: ["16", "17", "18"],
26+
deb13: ["16", "17", "18"],
2527
};
2628

2729
const aptPgdgSuites: Record<AptDistro, string> = {
2830
ubuntu22: "jammy",
2931
ubuntu24: "noble",
3032
deb11: "bullseye",
3133
deb12: "bookworm",
34+
deb13: "trixie",
3235
};
3336

3437
const rpmMajorVersions: Record<RpmDistro, "8" | "9"> = {

‎app/packages/page.tsx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ export default function PackagesPage() {
278278
</p>
279279
{packageFamily === "apt" ? (
280280
<p className="mt-2 text-sm text-amber-300">
281-
Debian 13 packages are currently available from GitHub Releases as direct
282-
downloads while the APT repository component is being published. Debian 11
281+
Debian 13 is now available in the repository-backed APT flow. Debian 11
283282
currently supports PostgreSQL 16 and 17 in the repository-backed flow.
284283
</p>
285284
) : null}
@@ -314,7 +313,7 @@ export default function PackagesPage() {
314313
<tbody className="text-gray-300">
315314
<tr className="border-b border-neutral-800">
316315
<td className="px-3 py-3 font-semibold text-blue-300">APT</td>
317-
<td className="px-3 py-3">Ubuntu 22.04/24.04, Debian 11/12</td>
316+
<td className="px-3 py-3">Ubuntu 22.04/24.04, Debian 11/12/13</td>
318317
<td className="px-3 py-3">amd64, arm64</td>
319318
<td className="px-3 py-3">16, 17, 18 (Debian 11: 16, 17)</td>
320319
<td className="px-3 py-3">
@@ -339,8 +338,8 @@ export default function PackagesPage() {
339338
target instead of scanning all combinations manually.
340339
</p>
341340
<p className="mt-2 text-xs text-gray-500">
342-
Debian 13 packages are published as direct <code>.deb</code> assets on GitHub
343-
Releases until the APT repository component is available.
341+
Debian 13 packages are available in the <code>deb13</code> APT component and
342+
remain downloadable as direct <code>.deb</code> assets from GitHub Releases.
344343
</p>
345344
</div>
346345
</details>

‎app/services/articleService.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Install DocumentDB on Linux hosts with apt/rpm packages.
4949
5050
Use the [Package Finder](/packages) to generate the exact install command for your distro, architecture, and PostgreSQL version.
5151
52-
> The repository-backed install commands currently cover Ubuntu 22.04/24.04, Debian 11/12, and RHEL-family 8/9 systems. Debian 13 packages are available as direct downloads from GitHub Releases while the APT repository component is being published. Debian 11 currently resolves PostgreSQL 16 and 17 in the repository-backed flow.
52+
> The repository-backed install commands currently cover Ubuntu 22.04/24.04, Debian 11/12/13, and RHEL-family 8/9 systems. Debian 11 currently resolves PostgreSQL 16 and 17 in the repository-backed flow.
5353
5454
## APT example
5555

0 commit comments

Comments
 (0)