Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to v1.6.3 #59

Merged
merged 4 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions Docker_build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@
ARG build_for=linux/amd64

##
# base image (abstract). Note that 3.11 does not build
# base image (abstract)
##
FROM --platform=$build_for python:3.9.9-slim-bullseye as base
# Please do not upgrade beyond python3.10.7 currently as dbt-spark does not support
# 3.11py and images do not get made properly
FROM --platform=$build_for python:3.10.7-slim-bullseye as base

# N.B. The refs updated automagically every release via bumpversion
# N.B. dbt-postgres is currently found in the core codebase so a value of dbt-core@<some_version> is correct

ARG dbt_core_ref=dbt-core@v1.5.0
ARG dbt_postgres_ref=dbt-core@v1.5.0
ARG dbt_redshift_ref=dbt-redshift@v1.5.0
ARG dbt_bigquery_ref=dbt-bigquery@v1.5.0
ARG dbt_snowflake_ref=dbt-snowflake@v1.5.0
ARG dbt_spark_ref=dbt-spark@v1.5.0
ARG dbt_core_ref=dbt-core@v1.6.3
ARG dbt_postgres_ref=dbt-core@v1.6.3
ARG dbt_redshift_ref=dbt-redshift@v1.6.1
ARG dbt_bigquery_ref=dbt-bigquery@v1.6.5
ARG dbt_snowflake_ref=dbt-snowflake@v1.6.2
ARG dbt_spark_ref=dbt-spark@v1.6.0
# special case args
ARG dbt_spark_version=all
ARG dbt_third_party
Expand Down Expand Up @@ -50,7 +52,6 @@ RUN python -m pip install --upgrade pip setuptools wheel --no-cache-dir

# Set docker basics
WORKDIR /usr/app/dbt/
VOLUME /usr/app
ENTRYPOINT ["dbt"]

##
Expand Down
4 changes: 2 additions & 2 deletions Docker_build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ update the references in the Dockerfile to current ones.

using the dbt [Dockerfile](https://github.com/dbt-labs/dbt-core/blob/main/docker/Dockerfile) as a template.

`docker build --tag mwhitaker/dbt_all:v1.5.0 --target dbt-all .`
`docker build --tag mwhitaker/dbt_all:v1.6.3 --target dbt-all .`

`docker push mwhitaker/dbt_all:v1.5.0`
`docker push mwhitaker/dbt_all:v1.6.3`
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG DBT_VERSION=v1.5.0
FROM mwhitaker/dbt_all:${DBT_VERSION}
ARG DBT_VERSION=v1.6.3
FROM ghcr.io/mwhitaker/dbt_all:${DBT_VERSION}

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A GitHub Action to run [dbt](https://www.getdbt.com) commands in a Docker container. It uses the official images provided by [Fishtown Analytics](https://hub.docker.com/r/fishtownanalytics/dbt/tags). You can use [dbt commands](https://docs.getdbt.com/reference/dbt-commands) such as `run`, `test` and `debug`. This action captures the dbt console output for use in subsequent steps.

### dbt version
The current version of dbt is **1.5.0**. Please note that from dbt v1.0.0. you may have to change your dbt project structure compared to v0.x.x. See the [migration](https://docs.getdbt.com/docs/guides/migration-guide/upgrading-to-1-0-0) docs.
The current version of dbt is **1.6.3**. Please note that from dbt v1.0.0. you may have to change your dbt project structure compared to v0.x.x. See the [migration](https://docs.getdbt.com/docs/guides/migration-guide/upgrading-to-1-0-0) docs.

dbt updates their [docker images](https://hub.docker.com/r/fishtownanalytics/dbt/tags?page=1&ordering=last_updated) on a frequent basis and the main branch of this Github Action should be close to the last stable tag. If you need to use an earlier version of dbt, you can call this action with a specific [release](https://github.com/mwhitaker/dbt-action/releases), eg `mwhitaker/dbt-action@v0.21.0` or `mwhitaker/dbt-action@v1.5.0`.

Expand Down