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
37 changes: 27 additions & 10 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
MAIN_BRANCH: "debian-cron"
PACKAGE_CLOUD_REPO_NAME: "citusdata/community"
PACKAGE_CLOUD_API_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PACKAGING_SECRET_KEY: ${{ secrets.PACKAGING_SECRET_KEY }}
PACKAGING_PASSPHRASE: ${{ secrets.PACKAGING_PASSPHRASE }}
on:
Expand All @@ -17,27 +16,44 @@ on:
jobs:
build_package:
name: Build package
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
platform:
- debian/buster
- debian/bullseye
- debian/bookworm
- ubuntu/bionic
- ubuntu/focal
- debian/trixie
- ubuntu/jammy
- ubuntu/noble
- ubuntu/resolute

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_KEY }}
owner: citusdata

- name: Export App token to environment
run: |
echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"
echo "GITHUB_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"

- name: Clone tools branch
run: git clone -b v0.8.30 --depth=1 https://github.com/citusdata/tools.git tools
run: git clone -b v0.8.39 --depth=1 https://github.com/citusdata/tools.git tools

- name: Install package dependencies
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev python3-testresources
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev libssl-dev python3-testresources

- name: Install python requirements
run: python -m pip install -r tools/packaging_automation/requirements.txt
Expand All @@ -55,11 +71,12 @@ jobs:
--output_validation

- name: Publish packages
if: github.ref == format('refs/heads/{0}', env.MAIN_BRANCH)
run: |
python -m tools.packaging_automation.upload_to_package_cloud \
--platform "${{ matrix.platform }}" \
--package_cloud_api_token "${PACKAGE_CLOUD_API_TOKEN}" \
--repository_name "${PACKAGE_CLOUD_REPO_NAME}" \
--output_file_path "$(pwd)/packages" \
--current_branch "${GITHUB_REF##*/}" \
--current_branch "${GITHUB_REF_NAME}" \
--main_branch "${MAIN_BRANCH}"
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
pgcron (1.6.8.citus-1) stable; urgency=low

* Official 1.6.8 release of PG Cron
* Build for supported PostgreSQL 14 through 18

-- Ibrahim Halatci <ihalatci@microsoft.com> Wed, 09 Sep 2026 15:33:31 +0000

pgcron (1.6.5.citus-1) stable; urgency=low

* Official 1.6.5 release of PG Cron
Expand Down
1 change: 1 addition & 0 deletions debian/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Homepage: https://github.com/citusdata/pg_cron
Package: postgresql-PGVERSION-pgcron
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, postgresql-PGVERSION
Breaks: ${postgresql:Breaks}
Description: Periodic job scheduler for PostgreSQL
This extension runs a background worker that can schedule SQL commands
to be run periodically.
2 changes: 1 addition & 1 deletion pkgvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pkgname=pgcron
hubproj=pg_cron
pkgdesc='Periodic job scheduler of PostgreSQL'
pkglatest=1.6.5.citus-1
pkglatest=1.6.8.citus-1
2 changes: 2 additions & 0 deletions postgres-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ version_matrix:
postgres_versions: [ 10, 11, 12, 13, 14, 15 ]
- 1.6.0:
postgres_versions: [ 10, 11, 12, 13, 14, 15, 16 ]
- 1.6.8:
postgres_versions: [ 14, 15, 16, 17, 18 ]
Loading