diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dddd455..ccf439a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,6 +6,9 @@ env: # renovate datasource=github-releases depName=timescale/timescaledb TIMESCALE_VERSION: 2.17.1 + # renovate datasource=github-releases depName=timescale/timescaledb-toolkit + TIMESCALE_TOOLKIT_VERSION: 1.18.0 + jobs: build: name: Build Image (pg${{ matrix.postgres_version }}) @@ -50,6 +53,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 @@ -81,13 +92,14 @@ jobs: context: . pull: true push: ${{ github.ref_name == 'main' }} - platforms: linux/amd64,linux/arm64/v8 + platforms: linux/amd64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | 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 diff --git a/Dockerfile b/Dockerfile index dfaf9d8..f944d4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ USER root ARG POSTGRES_VERSION ARG TIMESCALE_VERSION +ARG TIMESCALE_TOOLKIT_VERSION RUN <