Skip to content

Commit

Permalink
Merge pull request #20 from mwhitaker/fishtown-v1.0
Browse files Browse the repository at this point in the history
Update dbt-action to use dbt v1.0 by default
  • Loading branch information
mwhitaker authored Feb 3, 2022
2 parents 3cc14b4 + 348f2d2 commit 3549eb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]` or `mwhitaker/[email protected]`.

You can also reference a [tagged](https://github.com/mwhitaker/dbt-action/releases) release, eg `mwhitaker/[email protected]`.

## Usage

```yml
Expand Down

0 comments on commit 3549eb9

Please sign in to comment.