From c0e7add6238b196fb94bd6d2aabae107d04c4bd9 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Mon, 27 Nov 2023 10:55:19 +0000 Subject: [PATCH] Build FROM more specific tag --- .github/workflows/docker.yml | 1 + Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c44f347..a565a6c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -85,5 +85,6 @@ jobs: tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }} build-args: | + CNPG_TAG=${{ matrix.cnpgTag }} PG_MAJOR=${{ steps.version.outputs.pg_major }} PGVECTORS_TAG=${{ matrix.pgvectorsVersion }} diff --git a/Dockerfile b/Dockerfile index e171c80..80446cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -ARG PG_MAJOR=14 +ARG CNPG_TAG -FROM ghcr.io/cloudnative-pg/postgresql:$PG_MAJOR +FROM ghcr.io/cloudnative-pg/postgresql:$CNPG_TAG ARG PG_MAJOR ARG PGVECTORS_TAG