-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gdrive_to_snowflake task in example_load_dag (#2072)
The `gdrive_to_snowflake` task was failing because we hadn't set the `GOOGLE_APPLICATION_CREDENTIALS` in deployment. This pull request addresses the issue by creating a credential file using the Google Cloud Platform Service Account credentials from secrets, which is essential for the task.
- Loading branch information
1 parent
04b8c3d
commit 73d398a
Showing
4 changed files
with
12 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,10 @@ on: # yamllint disable-line rule:truthy | |
SLACK_WEBHOOK_URL: | ||
description: 'slack webhook url for sending notification' | ||
required: true | ||
GCP_SERVICE_ACCOUNT_JSON: | ||
description: 'GCP service account json' | ||
required: true | ||
|
||
|
||
jobs: | ||
deploy-to-astro-cloud: | ||
|
@@ -47,11 +51,13 @@ jobs: | |
working-directory: python-sdk/tests_integration/astro_deploy | ||
run: | | ||
echo "deploying ${{ inputs.git_rev }} to ${{ inputs.environment_to_deploy }}" | ||
echo "${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}" | base64 --decode > service-account-key.json | ||
bash deploy.sh ${{ secrets.docker_registry }}\ | ||
${{ secrets.organization_id }} \ | ||
${{ secrets.deployment_id }} \ | ||
${{ secrets.bearer_token }} \ | ||
- name: send succeeded notification to Slack | ||
if: success() && github.event_name == 'workflow_dispatch' | ||
uses: slackapi/[email protected] | ||
|
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