Skip to content

Commit 95bdf22

Browse files
committed
Added timescale toolkit and updated timescaledb
1 parent 454ca4a commit 95bdf22

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/build.yaml

Lines changed: 14 additions & 2 deletions
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.21.3
7+
TIMESCALE_VERSION: 2.22.1
8+
9+
# renovate datasource=github-releases depName=timescale/timescaledb-toolkit
10+
TIMESCALE_TOOLKIT_VERSION: 1.21.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@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
@@ -78,13 +89,14 @@ jobs:
7889
context: .
7990
pull: true
8091
push: ${{ github.ref_name == 'main' }}
81-
platforms: linux/amd64,linux/arm64/v8
92+
platforms: linux/amd64
8293
tags: ${{ steps.meta.outputs.tags }}
8394
labels: ${{ steps.meta.outputs.labels }}
8495
build-args: |
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: 6 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,11 @@ RUN <<EOT
2324
apt-get update
2425
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"
2526

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

0 commit comments

Comments
 (0)