Skip to content
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

[Chore] Move preparation task into a script #23

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"postCreateCommand": {
"dbt": "dbt deps",
"artifact": "gh repo set-default DataRecce/jaffle_shop_duckdb && run_id=$(gh run list --workflow \"Jaffle Shop Recce CI\" --status success --limit 1 --json databaseId --jq '.[0].databaseId') && gh run download $run_id -n duckdb"
},
"postStartCommand": "recce server --cloud --review"
"postStartCommand": "./.devcontainer/script/post_start.sh"
}
13 changes: 13 additions & 0 deletions .devcontainer/script/post_start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /bin/bash

# Install dbt dependencies
dbt deps

# Download duckdb file
gh repo set-default DataRecce/jaffle_shop_duckdb
branch=$(git branch --show-current)
run_id=$(gh run list --workflow "Jaffle Shop Recce CI" --branch $branch --status success --limit 1 --json databaseId --jq '.[0].databaseId')
gh run download $run_id -n duckdb

# Exec Recce
recce server --cloud --review
Loading