From 38295180c0fc2e07b0741513371022ee6c141cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 4 Nov 2024 09:21:45 -0600 Subject: [PATCH] Fix postgres version in log based image --- .github/workflows/test.yml | 2 +- Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 975a977..02b4585 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -79,7 +79,7 @@ jobs: env: POSTGRES_VERSION: ${{ matrix.postgres-version }} run: | - docker build . --tag meltano/log_based + docker build . --build-arg POSTGRES_VERSION=${POSTGRES_VERSION} --tag meltano/log_based - name: Compose Postgres container env: POSTGRES_VERSION: ${{ matrix.postgres-version }} diff --git a/Dockerfile b/Dockerfile index 8db5757..3f2fdb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM postgres:${POSTGRES_VERSION:-latest} +ARG POSTGRES_VERSION=latest + +FROM postgres:$POSTGRES_VERSION RUN apt-get update RUN apt-mark hold locales