-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STREAM-383/STREAM-668/deploy-to-hosted-account (#54)
* - removed utils.register_secret - add hosted profile * - refactor project variables to use config object * - add \n * - uncommented code * - update return type * - reverted name truncation * - change GHA workflow environments to align with dbt profiles * - add hosted option to enviornment dropdown * - add integration test * Update dbt_project.yml Add INTERNAL_DEV role to stg profile * - fix grants - enforce dbt target
- Loading branch information
Showing
18 changed files
with
128 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: integration test | ||
run-name: ${{ github.event.inputs.branch }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
type: choice | ||
description: DBT Run Environment | ||
required: true | ||
options: | ||
- dev | ||
- prod | ||
- hosted | ||
default: dev | ||
warehouse: | ||
type: choice | ||
description: Snowflake warehouse | ||
required: true | ||
options: | ||
- DBT | ||
- DBT_CLOUD | ||
default: DBT | ||
schedule: | ||
# Runs “Daily at midnight GMT” (see https://crontab.guru) | ||
- cron: '0 0 * * *' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
|
||
jobs: | ||
hosted: | ||
uses: ./.github/workflows/dbt.yml | ||
if: github.event_name == 'schedule' || github.event_name == 'push' | ||
secrets: inherit | ||
with: | ||
warehouse: DBT_CLOUD | ||
environment: hosted | ||
command: test -s test___utils_udf_introspect | ||
|
||
prod: | ||
uses: ./.github/workflows/dbt.yml | ||
if: github.event_name == 'schedule' || github.event_name == 'push' | ||
secrets: inherit | ||
with: | ||
warehouse: DBT_CLOUD | ||
environment: prod | ||
command: test -s test___utils_udf_introspect | ||
|
||
dispatched: | ||
uses: ./.github/workflows/dbt.yml | ||
if: github.event_name == 'workflow_dispatch' | ||
secrets: inherit | ||
with: | ||
warehouse: ${{ inputs.warehouse }} | ||
environment: ${{ inputs.environment }} | ||
command: test -s test___utils_udf_introspect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{{ config( | ||
materialized = 'view', | ||
grants = {'+select': ['INTERNAL_DEV']} | ||
grants = {'+select': var('ROLES')} | ||
) }} | ||
|
||
SELECT * | ||
FROM | ||
{{ source( | ||
'ethereum_core', | ||
'ez_decoded_event_logs' | ||
) }} | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{{ config( | ||
materialized = 'view', | ||
grants = {'+select': ['INTERNAL_DEV']} | ||
grants = {'+select': var('ROLES')} | ||
) }} | ||
|
||
SELECT * | ||
FROM | ||
{{ source( | ||
'ethereum_core', | ||
'fact_event_logs' | ||
) }} | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters