Skip to content

Combining checkout and dbt build #2

Combining checkout and dbt build

Combining checkout and dbt build #2

name: container_build
on: workflow_dispatch
jobs:
dbt_job:
environment: dev
runs-on: ubuntu-latest
container:
image: ghcr.io/dbt-labs/dbt-snowflake:1.6.0
steps:
- name: Run dbt
uses: actions/checkout@v3
env:
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}
SNOWFLAKE_SCHEMA: ${{ secrets.SNOWFLAKE_SCHEMA }}
DBT_ENV_SECRET_PRIVATE_KEY: ${{ secrets.DBT_ENV_SECRET_PRIVATE_KEY }}
DBT_PROFILES_DIR: ./docker
run: |
dbt deps
dbt build