Skip to content

Commit 3d07e5f

Browse files
committed
ci: add workflow to build postgres versions + http extension
1 parent 869f6fb commit 3d07e5f

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 🐘 Build & Publish PostgreSQL with HTTP Extension
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'http.dockerfile'
8+
- '.github/workflows/http-postgres.yml'
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
packages: write # or GHCR push
14+
15+
jobs:
16+
build:
17+
strategy:
18+
matrix:
19+
pg_version: [14, 15, 16, 17, 18]
20+
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@2.0.5
21+
with:
22+
build_target: pg-${{ matrix.pg_version }}
23+
image_name: "ghcr.io/hotosm/postgres:${{ matrix.pg_version }}-http"
24+
dockerfile: http.dockerfile

http.dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM postgres:14 AS pg-14
2+
3+
RUN apt-get update \
4+
&& apt-get install -y postgresql-14-http \
5+
&& rm -rf /var/lib/apt/lists/*
6+
7+
FROM postgres:15 AS pg-15
8+
9+
RUN apt-get update \
10+
&& apt-get install -y postgresql-15-http \
11+
&& rm -rf /var/lib/apt/lists/*
12+
13+
FROM postgres:16 AS pg-16
14+
15+
RUN apt-get update \
16+
&& apt-get install -y postgresql-16-http \
17+
&& rm -rf /var/lib/apt/lists/*
18+
19+
FROM postgres:17 AS pg-17
20+
21+
RUN apt-get update \
22+
&& apt-get install -y postgresql-17-http \
23+
&& rm -rf /var/lib/apt/lists/*
24+
25+
FROM postgres:18 AS pg-18
26+
27+
RUN apt-get update \
28+
&& apt-get install -y postgresql-18-http \
29+
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)