mirror of
https://github.com/YuzuZensai/cloudnative-vectorchord-pgvecto.rs.git
synced 2026-01-31 14:57:18 +00:00
fix: pgvecto.rs install package got renamed (#25)
* fix: pgvecto.rs install package got renamed * chore: Underscores * feat: Fail build if deb download returns 404 * chore: pgvecto.rs no longer versions with v prefix * Revert "chore: pgvecto.rs no longer versions with v prefix" This reverts commit a883c0de09ab439bbee45d9861e93416971427ae. * chore: Strip v prefix from pgvectors tag * chore: Use buildx TARGETARCH variable * fix: TARGETARCH arg needs to be specified
This commit is contained in:
@@ -4,10 +4,11 @@ FROM curlimages/curl AS download
|
|||||||
|
|
||||||
ARG CNPG_TAG
|
ARG CNPG_TAG
|
||||||
ARG PGVECTORS_TAG
|
ARG PGVECTORS_TAG
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
WORKDIR /download
|
WORKDIR /download
|
||||||
RUN pg_major=$(echo $CNPG_TAG | cut -d'.' -f1) \
|
RUN pg_major=$(echo $CNPG_TAG | cut -d'.' -f1) \
|
||||||
&& curl -o pgvectors.deb -sSL https://github.com/tensorchord/pgvecto.rs/releases/download/$PGVECTORS_TAG/vectors-pg${pg_major}-$PGVECTORS_TAG-$(uname -m)-unknown-linux-gnu.deb
|
&& curl --fail -o pgvectors.deb -sSL https://github.com/tensorchord/pgvecto.rs/releases/download/$PGVECTORS_TAG/vectors-pg${pg_major}_${PGVECTORS_TAG#"v"}_$TARGETARCH.deb
|
||||||
|
|
||||||
FROM ghcr.io/cloudnative-pg/postgresql:$CNPG_TAG
|
FROM ghcr.io/cloudnative-pg/postgresql:$CNPG_TAG
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user