Skip to content

Commit

Permalink
Merge pull request #14 from sungchun12/upgrade-dbt-version
Browse files Browse the repository at this point in the history
Upgrade to 0.19.0
  • Loading branch information
sungchun12 authored Feb 23, 2021
2 parents 7e40fe3 + 40f4c64 commit 97feb05
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cloud_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
#TODO(developer): update PROJECT_ID, REGION, IMAGE
PROJECT_ID: "wam-bam-258119"
PROJECT_ID: "dvc-demo-297316"
REGION: "us-central1"
IMAGE: "dbt-docs-cloud-run"
DBT_PROFILES_DIR: ./
Expand All @@ -32,7 +32,7 @@ jobs:
# Setup dbt configs
- uses: actions/setup-python@v1
with:
python-version: "3.7.x"
python-version: "3.8.x"
- run: pip3 install -r ./requirements.txt
- run: dbt --version
- run: 'echo "$KEYFILE" > ./service_account.json' # persist file in root dir
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dbt_operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
#TODO(developer): update PROJECT_ID
PROJECT_ID: "wam-bam-258119"
PROJECT_ID: "dvc-demo-297316"
DBT_PROFILES_DIR: ./
DBT_GOOGLE_BIGQUERY_KEYFILE: ./service_account.json

Expand All @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: "3.7.x"
python-version: "3.8.x"
- run: pip3 install -r ./requirements.txt
- run: dbt --version
- run: 'echo "$KEYFILE" > ./service_account.json' # persist file in root dir
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export DBT_PROFILES_DIR=$(pwd)
export PROJECT_ID="your-project-id"

# connect to GCP
gcloud auth application-default login --scopes=https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/drive.readonly
gcloud auth login

# check if the dbt files and connection work using oauth as the default
dbt debug
Expand Down Expand Up @@ -159,7 +159,7 @@ gcloud services enable run.googleapis.com
# build the docker image locally and tag it to eventually push to container registry
# does not take into account gitignore constraints given it's built locally
# ex: docker build . --tag gcr.io/wam-bam-258119/dbt-docs-cloud-run
export PROJECT_ID="wam-bam-258119"
export PROJECT_ID="dvc-demo-297316"
export IMAGE="dbt-docs-cloud-run"
export REGION="us-central1"

Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "jaffle_shop"
# Specify a requirement on an _exact_ version of dbt
require-dbt-version: 0.18.0
require-dbt-version: 0.19.0
version: 1.0.0
config-version: 2
profile: "jaffle_shop"
Expand Down
2 changes: 1 addition & 1 deletion models/sources/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2

sources:
- name: dbt_bq_example
database: wam-bam-258119
database: "{{ env_var('PROJECT_ID', 'dvc-demo-297316') }}"
schema: dbt_bq_example

freshness:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dbt==0.18.0
dbt==0.19.0
1 change: 0 additions & 1 deletion snapshots/orders_snapshot.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
{{
config
(
target_database='wam-bam-258119',
target_schema='dbt_bq_example',
unique_key='id',

Expand Down

0 comments on commit 97feb05

Please sign in to comment.