Remove PG_MAJOR build arg

This commit is contained in:
bo0tzz
2023-11-27 11:56:23 +00:00
parent 76388a6c0b
commit bcf6253b59
2 changed files with 3 additions and 3 deletions

View File

@@ -86,5 +86,4 @@ jobs:
labels: ${{ steps.metadata.outputs.labels }}
build-args: |
CNPG_TAG=${{ matrix.cnpgTag }}
PG_MAJOR=${{ steps.version.outputs.pg_major }}
PGVECTORS_TAG=${{ matrix.pgvectorsVersion }}

View File

@@ -2,11 +2,12 @@ ARG CNPG_TAG
FROM curlimages/curl AS download
ARG PG_MAJOR
ARG CNPG_TAG
ARG PGVECTORS_TAG
WORKDIR /download
RUN 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
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
FROM ghcr.io/cloudnative-pg/postgresql:$CNPG_TAG