-
Notifications
You must be signed in to change notification settings - Fork 44
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
dbt version upgrade #53
Comments
Alternatively, might it be possible to take the desired version number as a parameter? |
Yes! That would be even better |
Hi folks, Upgrading to a new version of dbt is a manual process for me. Unfortunately, dbt doesn't release a Docker image that could be used directly, so I am building it myself and host it on Dockerhub. Once the dbt image is built I can use it in the Github Action Dockerfile. Not sure if there is a sensible way to automate this. Anyway, I'll get the latest version updated the v1.5 shortly. Thanks for the comments and suggestions! |
Would you mind testing the v1.5 before I merge that to main?
|
@mwhitaker when do you plan to upgrade to dbt core 1.7.3 / 1.6.9? |
working on this now |
Version Right now the action crashes when project flags are present. 😞
|
Not sure if this would satisfy your requirements but a way to automate the dbt version upgrade can be by using the docker image provided by dbt-labs: docker pull ghcr.io/dbt-labs/<db_adapter_name>:<version_tag> This is how I use it in my own Dockerfiles as example:
|
Thank you for these suggestions. I’ll check it out to see if I can make the
version upgrade smoother. It’s always possible that things have changed,
but I have for some reason I always had to build the whole image with all
connectors manually.
…On Tue, Jun 18, 2024 at 13:35 Dylan ***@***.***> wrote:
Not sure if this would satisfy your requirements but a way to automate the
dbt version upgrade can be by using the docker image provided by dbt-labs: docker
pull ghcr.io/dbt-labs/<db_adapter_name>:<version_tag>
<https://docs.getdbt.com/docs/core/docker-install>
This is how I use it in my own Dockerfiles:
FROM --platform=linux/amd64 ghcr.io/dbt-labs/dbt-bigquery:1.8.1
—
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6LXTYNUDM4JKAA5AQBUH3ZIASSJAVCNFSM6AAAAAAZN3ERXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZVHE4TKMZTGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@mwhitaker I recently hacked a 1.8.3 action together in order to utilize the recently released dbt unit test functionality and it went very smoothly after your changes from PR 60 A quick search didn't show any docker images with "all" of the connectors present like yours so I took the same path of building an image. Thank you for putting this together and sorry for hacking up your Dockerfile so badly! |
Workaround: we replaced this action with a local action instead (see documentation here). First, we had to create the custom action in runs:
using: "docker"
image: "ghcr.io/dbt-labs/dbt-snowflake:1.7.5"
entrypoint: ./.github/actions/dbt-action/entrypoint.sh
args:
- ${{ inputs.dbt_command }} And we also copied Then we just had to replace Bonus: it also performs a lot faster since it doesn't need to build the container from scratch (from the Dockerfile). |
@mwhitaker: I think it might be possible for your action to take the Docker image as a parameter, which would greatly simplify things for everyone. Something like
|
Same here. It would be very helpful to be able to upgrade to dbt>1.8 |
Hi, is there a plan to upgrade the dbt cli to version 1.5.0?
The text was updated successfully, but these errors were encountered: