You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0cdc55f
Browse filesBrowse the repository at this point in the historyBrowse files
## [Cloud Run Deploy with Auto Rollback reusable workflow](https://github.com/clouddrove/github-shared-workflows/blob/master/.github/workflows/shared-cloudrun-rollback.yml)
2
+
3
+
4
+
5
+
### Overview
6
+
7
+
The Cloud Run Deploy with Auto Rollback reusable workflow is designed to make Cloud Run deployments safer and more reliable.
8
+
9
+
It deploys a new Docker image to a Cloud Run service while preserving the currently active revision.
10
+
If the deployment fails, parent workflows can automatically roll back traffic to the last stable revision.
11
+
12
+
This approach helps reduce production risk and ensures quick recovery from failed deployments.
13
+
14
+
### Features
15
+
16
+
* Deploys a Docker image to Google Cloud Run
17
+
18
+
* Captures the currently active revision before deployment
19
+
20
+
* Exposes the previous revision as a workflow output
21
+
22
+
* Enables automatic rollback on deployment failure
23
+
24
+
* Uses secure GCP authentication via Service Account
25
+
26
+
* Designed as a reusable workflow for multiple services
This workflow automates Terraform configuration drift detection by running terraform init/plan against your live infrastructure and signaling when resources have changed outside of code. The reusable workflow is stored at `.github/workflows/tfdrifts.yml` in the shared repo.
4
+
5
+
**Key capabilities**:
6
+
- Detect drift via terraform plan.
7
+
- Works with AWS, Azure, or GCP (select with provider).
0 commit comments