From 02d7727365cfb2fc7664797938412aec07018db2 Mon Sep 17 00:00:00 2001 From: Mike Alfare <13974384+mikealfare@users.noreply.github.com> Date: Thu, 28 Mar 2024 13:18:59 -0400 Subject: [PATCH] Fix Docker release process for `dbt-postgres` (#9828) * revert to the 1.7 approach, 1.8 will be handled in the new repo --- .changes/unreleased/Fixes-20240327-150013.yaml | 7 +++++++ docker/Dockerfile | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Fixes-20240327-150013.yaml diff --git a/.changes/unreleased/Fixes-20240327-150013.yaml b/.changes/unreleased/Fixes-20240327-150013.yaml new file mode 100644 index 00000000000..f988dd5c1ab --- /dev/null +++ b/.changes/unreleased/Fixes-20240327-150013.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: '"Fix Docker release process to account for both historical and current versions + of `dbt-postgres`' +time: 2024-03-27T15:00:13.388268-04:00 +custom: + Author: mikealfare + Issue: "9827" diff --git a/docker/Dockerfile b/docker/Dockerfile index 8654304dfbc..3264eb8456e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -62,7 +62,7 @@ RUN python -m pip install --no-cache-dir "git+https://github.com/dbt-labs/${dbt_ # dbt-postgres ## FROM base as dbt-postgres -RUN python -m pip install --no-cache-dir "git+https://github.com/dbt-labs/${dbt_postgres_ref}#egg=dbt-postgres" +RUN python -m pip install --no-cache-dir "git+https://github.com/dbt-labs/${dbt_postgres_ref}#egg=dbt-postgres&subdirectory=plugins/postgres" ## @@ -130,4 +130,4 @@ RUN apt-get update \ RUN python -m pip install --no-cache "git+https://github.com/dbt-labs/${dbt_bigquery_ref}#egg=dbt-bigquery" RUN python -m pip install --no-cache "git+https://github.com/dbt-labs/${dbt_snowflake_ref}#egg=dbt-snowflake" RUN python -m pip install --no-cache "git+https://github.com/dbt-labs/${dbt_spark_ref}#egg=dbt-spark[${dbt_spark_version}]" - RUN python -m pip install --no-cache "git+https://github.com/dbt-labs/${dbt_postgres_ref}#egg=dbt-postgres" + RUN python -m pip install --no-cache "git+https://github.com/dbt-labs/${dbt_postgres_ref}#egg=dbt-postgres&subdirectory=plugins/postgres"