Skip to content

Build & Deploy Cloudrun Function POC #9

Build & Deploy Cloudrun Function POC

Build & Deploy Cloudrun Function POC #9

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
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}

Check failure on line 33 in .github/workflows/build-deploy-cloudrun-function_poc.yml

View workflow run for this annotation

GitHub Actions / Build & Deploy Cloudrun Function POC

Invalid workflow file

The workflow is not valid. .github/workflows/build-deploy-cloudrun-function_poc.yml (Line: 33, Col: 23): Invalid input, GCP_PROJECT_ID is not defined in the referenced workflow. .github/workflows/build-deploy-cloudrun-function_poc.yml (Line: 34, Col: 27): Invalid input, GCP_PROJECT_NUMBER is not defined in the referenced workflow.
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 }}