Skip to content
Open
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
17 changes: 13 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on: push

env:
# renovate datasource=github-releases depName=timescale/timescaledb
TIMESCALE_VERSION: 2.19.3
TIMESCALE_VERSION: 2.22.1

# renovate datasource=github-releases depName=timescale/timescaledb-toolkit
TIMESCALE_TOOLKIT_VERSION: 1.21.0

jobs:
build:
Expand All @@ -26,9 +29,6 @@ jobs:
- postgres_version: "15"
# renovate datasource=docker depName=ghcr.io/cloudnative-pg/postgresql
cnpg_version: 15.13-11
- postgres_version: "14"
# renovate datasource=docker depName=ghcr.io/cloudnative-pg/postgresql
cnpg_version: 14.18-11
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -50,6 +50,14 @@ jobs:
echo "minor=$(cut -d. -f-2 <<<"$TIMESCALE_VERSION")"
echo "major=$(cut -d. -f1 <<<"$TIMESCALE_VERSION")"
} >> $GITHUB_OUTPUT
- name: Get Timescale Toolkit version
id: timescale_toolkit
run: |
{
echo "version=$TIMESCALE_TOOLKIT_VERSION"
echo "minor=$(cut -d. -f-2 <<<"$TIMESCALE_TOOLKIT_VERSION")"
echo "major=$(cut -d. -f1 <<<"$TIMESCALE_TOOLKIT_VERSION")"
} >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
Expand Down Expand Up @@ -88,6 +96,7 @@ jobs:
POSTGRES_VERSION=${{ matrix.postgres_version }}
CLOUDNATIVEPG_VERSION=${{ steps.cnpg.outputs.version }}
TIMESCALE_VERSION=${{ steps.timescale.outputs.version }}
TIMESCALE_TOOLKIT_VERSION=${{ steps.timescale_toolkit.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ USER root

ARG POSTGRES_VERSION
ARG TIMESCALE_VERSION
ARG TIMESCALE_TOOLKIT_VERSION
RUN <<EOT
set -eux

Expand All @@ -21,7 +22,12 @@ RUN <<EOT

# Install Timescale
apt-get update
apt-get install -y --no-install-recommends "timescaledb-2-postgresql-$POSTGRES_VERSION=$TIMESCALE_VERSION~debian$VERSION_ID"
apt-get install -y --no-install-recommends "timescaledb-2-postgresql-$POSTGRES_VERSION=$TIMESCALE_VERSION~debian$VERSION_ID" "timescaledb-2-loader-postgresql-$POSTGRES_VERSION=$TIMESCALE_VERSION~debian$VERSION_ID"


# Install Timescale Toolkit
apt-get update
apt-get install -y --no-install-recommends "timescaledb-toolkit-postgresql-$POSTGRES_VERSION=1:$TIMESCALE_TOOLKIT_VERSION~debian$VERSION_ID"

# Cleanup
apt-get purge -y curl
Expand Down