From c71f3bf0abea6ad7377c5cd820e6231ab814596c Mon Sep 17 00:00:00 2001 From: Seth Date: Sat, 3 Aug 2024 12:59:23 -0400 Subject: [PATCH 1/2] fix yml file formatting --- .ci/profiles.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.ci/profiles.yml b/.ci/profiles.yml index 99fb471..4ca3807 100644 --- a/.ci/profiles.yml +++ b/.ci/profiles.yml @@ -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 - \ No newline at end of file From b7a3f5fbc3fabad67f2bf86ac37ad97534ea61ae Mon Sep 17 00:00:00 2001 From: Seth Date: Sat, 3 Aug 2024 12:59:54 -0400 Subject: [PATCH 2/2] update keyfile path --- .github/workflows/persist-manifest.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/persist-manifest.yml b/.github/workflows/persist-manifest.yml index 5e0b0e3..fec5868 100644 --- a/.github/workflows/persist-manifest.yml +++ b/.github/workflows/persist-manifest.yml @@ -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