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 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