Skip to content

Commit 2857035

Browse files
committed
Add dpkg actions build
1 parent a582b5e commit 2857035

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*'
5+
# temp testing
6+
branches:
7+
- '*'
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
architecture: [ 'amd64', 'arm64' ]
13+
ubuntu_version: [ 'focal', 'noble' ]
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@v6
17+
- uses: jtdor/build-deb-action@v1
18+
with:
19+
setup-hook: |
20+
apt-get update
21+
apt-get install -y apt-transport-https ca-certificates curl
22+
install -d /usr/share/postgresql-common/pgdg
23+
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
24+
host-arch: ${{ matrix.architecture }}
25+
docker-image: "ubuntu:${{ matrix.ubuntu_version }}"
26+
extra-repos: |
27+
deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://${{ case(matrix.ubuntu_version == 'focal', 'apt-archive.postgresql.org', 'apt.postgresql.org') }}/pub/repos/apt ${{ matrix.ubuntu_version }}-pgdg main
28+
- name: Upload Packages
29+
uses: actions/upload-artifact@v6
30+
with:
31+
name: deb-packages-${{ matrix.ubuntu_version }}-${{ matrix.architecture }}
32+
path: debian/artifacts

0 commit comments

Comments
 (0)