Build & Deploy Cloudrun Functions #61
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
name: Build & Deploy Cloudrun Functions | |
on: | |
push: | |
branches: | |
- main | |
- staging | |
paths: | |
- 'fivetran-trigger/**' | |
workflow_dispatch: | |
inputs: | |
function_name: | |
description: 'The name of the Cloud Function to deploy' | |
required: true | |
default: 'fivetran-trigger' | |
jobs: | |
build_and_deploy: | |
uses: CruGlobal/.github/.github/workflows/build-deploy-cloudrun-function.yml@gcp-cloudrun #temporarily using branch for testing | |
secrets: | |
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | |
WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} | |
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }} | |
GCP_SERVICE_ACCOUNT_EMAIL: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }} | |
RUN_SERVICE_ACCOUNT: ${{ secrets.RUN_SERVICE_ACCOUNT }} | |
GCP_REGION: ${{ secrets.GCP_REGION }} | |
with: | |
function_name: ${{ github.event.inputs.function_name }} | |
entry_point: hello_http | |
runtime: python312 | |