Skip to content

Commit 72179d5

Browse files
committed
Add dpkg actions build
1 parent a582b5e commit 72179d5

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: "${{ case(matrix.architecture == 'arm64', 'ubuntu-24.04-arm', '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+
docker-image: "ubuntu:${{ matrix.ubuntu_version }}"
25+
extra-repos: |
26+
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
27+
- name: Upload Packages
28+
uses: actions/upload-artifact@v6
29+
with:
30+
name: deb-packages-${{ matrix.ubuntu_version }}-${{ matrix.architecture }}
31+
path: debian/artifacts

0 commit comments

Comments
 (0)