Skip to content

Commit

Permalink
Merge pull request #1 from Short-io/timescale-toolkit
Browse files Browse the repository at this point in the history
Timescale toolkit
  • Loading branch information
gugu authored Oct 27, 2024
2 parents 234c50b + e9dcfc3 commit def5710
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .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.16.1
TIMESCALE_VERSION: 2.17.1

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

jobs:
build:
Expand Down Expand Up @@ -47,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@v5
Expand Down Expand Up @@ -85,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
5 changes: 5 additions & 0 deletions 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 @@ -23,6 +24,10 @@ RUN <<EOT
apt-get update
apt-get install -y --no-install-recommends "timescaledb-2-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
rm /etc/apt/sources.list.d/timescaledb.list /etc/apt/trusted.gpg.d/timescale.gpg
Expand Down

0 comments on commit def5710

Please sign in to comment.