Skip to content

Commit

Permalink
Merge pull request #6 from segoldma/feat/persist-manifest
Browse files Browse the repository at this point in the history
Feat/persist manifest
  • Loading branch information
segoldma authored Aug 3, 2024
2 parents eb32da3 + b7a3f5f commit a2a23e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
11 changes: 5 additions & 6 deletions .ci/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ sethbox:
target: ci
outputs:
ci:
dataset: {{ env_var('CICD_DATASET') }}
keyfile: {{ env_var('CICD_SERVICE_ACCOUNT') }}
location: {{ env_var('CICD_LOCATION') }}
priority: {{ env_var('CICD_PRIORITY') }}
project: {{ env_var('CICD_PROJECT') }}
dataset: "{{ env_var('CICD_DATASET') }}"
keyfile: "{{ env_var('CICD_SERVICE_ACCOUNT') }}"
location: "{{ env_var('CICD_LOCATION') }}"
priority: "{{ env_var('CICD_PRIORITY') }}"
project: "{{ env_var('CICD_PROJECT') }}"
type: bigquery
method: service-account
job_execution_timeout_seconds: 300
job_retries: 1
threads: 16

9 changes: 2 additions & 7 deletions .github/workflows/persist-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,13 @@ jobs:
pip install dbt-bigquery
- name: Set up environment variables and write service account key
run: |
echo "${{ secrets.CICD_SERVICE_ACCOUNT }}" > /tmp/service_account.json
env:
CICD_DATASET: ${{ secrets.CICD_DATASET }}
CICD_LOCATION: ${{ secrets.CICD_LOCATION }}
CICD_PRIORITY: ${{ secrets.CICD_PRIORITY }}
CICD_PROJECT: ${{ secrets.CICD_PROJECT }}
run: |
echo "${{ secrets.CICD_SERVICE_ACCOUNT }}" > /tmp/service_account.json
echo "Dataset: $CICD_DATASET"
echo "Keyfile: /tmp/service_account.json"
echo "Location: $CICD_LOCATION"
echo "Priority: $CICD_PRIORITY"
echo "Project: $CICD_PROJECT"

- name: Create dbt profiles directory
run: mkdir -p ~/.dbt
Expand Down

0 comments on commit a2a23e9

Please sign in to comment.