diff --git a/Dockerfile b/Dockerfile index 81b0069..952b4bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ -ARG DBT_VERSION=0.21.0 +ARG DBT_VERSION=1.0.0 FROM fishtownanalytics/dbt:${DBT_VERSION} RUN apt-get update && apt-get install libsasl2-dev # Need to re-declare the ARG to use its default value defined before the FROM ARG DBT_VERSION RUN pip install --no-cache-dir --upgrade pip && \ + pip install dbt-databricks && \ pip install dbt-spark[PyHive]==${DBT_VERSION} COPY entrypoint.sh /entrypoint.sh diff --git a/README.md b/README.md index cb74e6c..3f90085 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,12 @@ 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.0.0. Please note that dbt v1.0.0. may require some changes to 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 [branch](https://github.com/mwhitaker/dbt-action/branches), eg `mwhitaker/dbt-action@fishtown-v0.21.0` or `mwhitaker/dbt-action@fishtown-v0.19.1`. +You can also reference a [tagged](https://github.com/mwhitaker/dbt-action/releases) release, eg `mwhitaker/dbt-action@v0.1.9`. + ## Usage ```yml