Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/images.yml

This file was deleted.

53 changes: 45 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- 'v*'

jobs:
build:
deb12-build:
runs-on: ubuntu-latest
container: debian:bookworm
steps:
Expand Down Expand Up @@ -38,25 +38,62 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: pkg
name: deb12-pkg
path: '*.deb'
retention-days: 1

deploy:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
- uses: yeti-switch/upload-debian-pkg-action@v2
with:
pkgs: '*.deb'
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
s3_component: bookworm
s3_access_key_id: ${{ secrets.DEB_AWS_ACCESS_KEY_ID }}
s3_secret_access_key: ${{ secrets.DEB_AWS_SECRET_ACCESS_KEY }}
s3_endpoint_url: ${{ secrets.DEB_AWS_ENDPOINT }}
s3_prefix: '1.14'
if: startsWith(github.ref, 'refs/tags/v')

deb13-build:
runs-on: ubuntu-latest
container: debian:bookworm
container: debian:trixie
steps:
- uses: actions/download-artifact@v4
- name: install aux deps
run: apt update && apt -y --no-install-recommends install git ca-certificates curl gpg make

- name: add pgdg pkg repo
run: >
echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt trixie-pgdg main" >> /etc/apt/sources.list.d/pgdg.list &&
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg

- run: apt update && apt -y --no-install-recommends install postgresql-server-dev-all

- uses: actions/checkout@v4

- name: generate debian/control
run: pg_buildext updatecontrol && make -f debian/rules debian/control

- name: install build deps
run: apt -y --no-install-recommends build-dep .

- name: build package
run: make deb

- name: mv *.deb to the cwd
run: mv ../*.deb .

- uses: actions/upload-artifact@v4
with:
name: pkg
name: deb13-pkg
path: '*.deb'
retention-days: 1

- uses: yeti-switch/upload-debian-pkg-action@v2
with:
pkgs: '*.deb'
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
s3_component: trixie
s3_access_key_id: ${{ secrets.DEB_AWS_ACCESS_KEY_ID }}
s3_secret_access_key: ${{ secrets.DEB_AWS_SECRET_ACCESS_KEY }}
s3_endpoint_url: ${{ secrets.DEB_AWS_ENDPOINT }}
Expand Down
23 changes: 0 additions & 23 deletions ci/bookworm-build.Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions ci/bullseye-build.Dockerfile

This file was deleted.

31 changes: 0 additions & 31 deletions ci/deploy.sh

This file was deleted.