diff --git a/images/splio-vectorrs/.release b/images/splio-vectorrs/.release index 08084eb0562776471f9bcfe34a7259751d53c3cb..51cc74622cc09120ccb1cb514986c5e2f5b6af54 100644 --- a/images/splio-vectorrs/.release +++ b/images/splio-vectorrs/.release @@ -1 +1 @@ -release=15-3.0-p1-r2 +release=2 diff --git a/images/splio-vectorrs/Earthfile b/images/splio-vectorrs/Earthfile index d563883b5198b3b47d810d48ac738c3f76e0ca45..85ce044d70fe7326a4c437a6144065c3c4ea0959 100644 --- a/images/splio-vectorrs/Earthfile +++ b/images/splio-vectorrs/Earthfile @@ -4,10 +4,13 @@ container: FROM ghcr.io/zalando/spilo-15:3.0-p1 ARG registry=quay.io/shivering-isles/splio-vectorrs COPY .release ./ - ARG tag=$(awk -F'=' '$1 == "release" {print $2}' .release) + # renovate: datasource=github-releases depName=tensorchord/pgvecto.rs + ARG PG_VECTORS_VERSION=v0.2.0 + ENV PG_VERSION=$(pg_config --version | sed -e 's/PostgreSQL //' -e 's/\..*//') + ARG tag=$PG_VERSION-$(echo $PATRONIVERSION | cut -d'.' -f 1-2)-pg${PG_VECTORS_VERSION}-r$(awk -F'=' '$1 == "release" {print $2}' .release) ARG latest=false - ARG VECTORS_DEB="./vectors-pg15_amd64.deb" - RUN curl -L https://github.com/tensorchord/pgvecto.rs/releases/download/v0.2.0/vectors-pg15_0.2.0_amd64.deb > "$VECTORS_DEB" + ARG VECTORS_DEB="./vectors-pg${PG_VERSION}_amd64.deb" + RUN curl -L https://github.com/tensorchord/pgvecto.rs/releases/download/${PG_VECTORS_VERSION}/vectors-pg${PG_VERSION}_$(echo $PG_VECTORS_VERSION | sed -e 's/^v//')_amd64.deb > "$VECTORS_DEB" RUN apt install "$VECTORS_DEB" RUN rm "$VECTORS_DEB" DO ../.utils/+LABEL --image=postfix --version=main