-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify github action to deploy dbt trigger (#30)
* Modify github action yml * setup individual function build jobs * modify workflow name --------- Co-authored-by: Luis Rodriguez <[email protected]>
- Loading branch information
1 parent
7af7225
commit 5e1fce7
Showing
2 changed files
with
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build & Deploy DBT Trigger | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- poc | ||
- staging | ||
paths: | ||
- 'dbt-trigger/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_deploy_dbt_trigger: | ||
uses: CruGlobal/.github/.github/workflows/build-deploy-cloudrun-function.yml@v1 | ||
with: | ||
function_name: dbt-trigger | ||
entry_point: trigger_dbt_job | ||
runtime: python312 | ||
environment: ${{ github.ref == 'refs/heads/main' && 'production' || github.ref == 'refs/heads/poc' && 'poc' || github.ref == 'refs/heads/staging' && 'staging' }} | ||
secrets: | ||
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }} | ||
GCP_PROJECT_NUMBER: ${{ vars.GCP_PROJECT_NUMBER }} | ||
WORKLOAD_IDENTITY_POOL: ${{ vars.WORKLOAD_IDENTITY_POOL }} | ||
WORKLOAD_IDENTITY_PROVIDER: ${{ vars.WORKLOAD_IDENTITY_PROVIDER }} | ||
GCP_SERVICE_ACCOUNT: ${{ vars.GCP_SERVICE_ACCOUNT }} | ||
GCP_SERVICE_ACCOUNT_EMAIL: ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }} | ||
GCP_REGION: ${{ vars.GCP_REGION }} |
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