-
Notifications
You must be signed in to change notification settings - Fork 0
Add manual Cloud Run deploy dispatch #97
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ name: Deploy Cloud Run | |
| on: | ||
| push: | ||
| branches: [ main ] | ||
| workflow_dispatch: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
With this Useful? React with 👍 / 👎. |
||
|
|
||
| env: | ||
| GCP_PROJECT_ID: longbridgequant | ||
|
|
||
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.
With this bare
workflow_dispatch, a maintainer can choose any branch/ref in the manual “Run workflow” UI; this job later checks out that selected ref and deploys the resulting${GITHUB_SHA}image to the Cloud Run environments. That bypasses the previouspushtrigger'smain-only deployment restriction, so a feature branch can be manually promoted to production unless the workflow gatesgithub.ref == 'refs/heads/main'or otherwise validates the selected ref.Useful? React with 👍 / 👎.