-
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.
Configure environment workflows. (#11)
* Configure environment workflows. Note: reusable workflows don't support environments. for this reason main will not use environments. * Pass environtment as an input to the reusable workflow
- Loading branch information
1 parent
267f5f8
commit cc7be77
Showing
3 changed files
with
67 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build & Deploy Cloudrun Function POC | ||
|
||
on: | ||
push: | ||
branches: | ||
- poc | ||
paths: | ||
- 'fivetran-trigger/**' | ||
workflow_dispatch: | ||
inputs: | ||
function_name: | ||
description: 'The name of the Cloud Function to deploy' | ||
required: true | ||
default: 'fivetran-trigger' | ||
entry_point: | ||
description: 'The python function serving as the entry point' | ||
required: true | ||
default: 'hello_http' | ||
runtime: | ||
description: 'The function runtime' | ||
required: true | ||
default: 'python312' | ||
|
||
jobs: | ||
build_and_deploy: | ||
|
||
uses: CruGlobal/.github/.github/workflows/build-deploy-cloudrun-function.yml@gcp-cloudrun #temporarily using branch for testing | ||
with: | ||
function_name: ${{ github.event.inputs.function_name }} | ||
entry_point: hello_http | ||
runtime: python312 | ||
environment: poc | ||
|
33 changes: 33 additions & 0 deletions
33
.github/workflows/build-deploy-cloudrun-function_staging.yml
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,33 @@ | ||
name: Build & Deploy Cloudrun Function Staging | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
paths: | ||
- 'fivetran-trigger/**' | ||
workflow_dispatch: | ||
inputs: | ||
function_name: | ||
description: 'The name of the Cloud Function to deploy' | ||
required: true | ||
default: 'fivetran-trigger' | ||
entry_point: | ||
description: 'The python function serving as the entry point' | ||
required: true | ||
default: 'hello_http' | ||
runtime: | ||
description: 'The function runtime' | ||
required: true | ||
default: 'python312' | ||
|
||
jobs: | ||
build_and_deploy: | ||
|
||
uses: CruGlobal/.github/.github/workflows/build-deploy-cloudrun-function.yml@gcp-cloudrun #temporarily using branch for testing | ||
with: | ||
function_name: ${{ github.event.inputs.function_name }} | ||
entry_point: hello_http | ||
runtime: python312 | ||
environment: staging | ||
|