-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial commit for cloudrun build and deploy workflows #244
Conversation
Cool, thanks for working on this. I'd be happy to have you own the GHA deployment stuff. On the plane I was starting to work on a gha workflow, but I didn't think of putting in our org .github directory. I will have to research when it's appropriate to put things here vs the repo itself. I think the flow of what you have here is super close to what I was drafting. |
Here's my WIP draft: |
@mattdrees As far as where to store the build and deploy workflow. I lean toward setting it here so that other repos can use it without duplicating the process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look at it more tonight
9774394
to
1cba2f3
Compare
9e7e2e7
to
19d14a1
Compare
I took this out of the terraform module as well.
pass them as secrets
f39d8a1
to
5744149
Compare
@mattdrees @Omicron7 ready for review. |
Build & Deploy Cloud Run Function Workflow
This repository contains a GitHub Actions workflow for building and deploying a Cloud Function to Google Cloud Run. The workflow is defined in
workflow-templates/build-deploy-cloudrun-function.yml
.Workflow Configuration
The workflow is triggered on:
$default-branch
.Inputs
function_name
: The name of the Cloud Function to deploy (required).entry_point
: The Python function serving as the entry point (required).runtime
: The function runtime (required).Secrets
The following secrets must be configured in your GitHub repository:
GCP_PROJECT_ID
GCP_PROJECT_NUMBER
WORKLOAD_IDENTITY_POOL
WORKLOAD_IDENTITY_PROVIDER
GCP_SERVICE_ACCOUNT
GCP_SERVICE_ACCOUNT_EMAIL
GCP_REGION
Notes