Skip to content

Commit def5710

Browse files
authored
Merge pull request #1 from Short-io/timescale-toolkit
Timescale toolkit
2 parents 234c50b + e9dcfc3 commit def5710

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on: push
44

55
env:
66
# renovate datasource=github-releases depName=timescale/timescaledb
7-
TIMESCALE_VERSION: 2.16.1
7+
TIMESCALE_VERSION: 2.17.1
8+
9+
# renovate datasource=github-releases depName=timescale/timescaledb-toolkit
10+
TIMESCALE_TOOLKIT_VERSION: 1.18.0
811

912
jobs:
1013
build:
@@ -47,6 +50,14 @@ jobs:
4750
echo "minor=$(cut -d. -f-2 <<<"$TIMESCALE_VERSION")"
4851
echo "major=$(cut -d. -f1 <<<"$TIMESCALE_VERSION")"
4952
} >> $GITHUB_OUTPUT
53+
- name: Get Timescale Toolkit version
54+
id: timescale_toolkit
55+
run: |
56+
{
57+
echo "version=$TIMESCALE_TOOLKIT_VERSION"
58+
echo "minor=$(cut -d. -f-2 <<<"$TIMESCALE_TOOLKIT_VERSION")"
59+
echo "major=$(cut -d. -f1 <<<"$TIMESCALE_TOOLKIT_VERSION")"
60+
} >> $GITHUB_OUTPUT
5061
- name: Docker meta
5162
id: meta
5263
uses: docker/metadata-action@v5
@@ -85,6 +96,7 @@ jobs:
8596
POSTGRES_VERSION=${{ matrix.postgres_version }}
8697
CLOUDNATIVEPG_VERSION=${{ steps.cnpg.outputs.version }}
8798
TIMESCALE_VERSION=${{ steps.timescale.outputs.version }}
99+
TIMESCALE_TOOLKIT_VERSION=${{ steps.timescale_toolkit.outputs.version }}
88100
cache-from: type=gha
89101
cache-to: type=gha,mode=max
90102

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ USER root
77

88
ARG POSTGRES_VERSION
99
ARG TIMESCALE_VERSION
10+
ARG TIMESCALE_TOOLKIT_VERSION
1011
RUN <<EOT
1112
set -eux
1213

@@ -23,6 +24,10 @@ RUN <<EOT
2324
apt-get update
2425
apt-get install -y --no-install-recommends "timescaledb-2-postgresql-$POSTGRES_VERSION=$TIMESCALE_VERSION~debian$VERSION_ID"
2526

27+
# Install Timescale Toolkit
28+
apt-get update
29+
apt-get install -y --no-install-recommends "timescaledb-toolkit-postgresql-$POSTGRES_VERSION=1:$TIMESCALE_TOOLKIT_VERSION~debian$VERSION_ID"
30+
2631
# Cleanup
2732
apt-get purge -y curl
2833
rm /etc/apt/sources.list.d/timescaledb.list /etc/apt/trusted.gpg.d/timescale.gpg

0 commit comments

Comments
 (0)