mirror of
https://github.com/google/nomulus
synced 2026-09-29 03:05:42 +00:00
Add prod auto-promote and canary-1 advance rules to CD pipeline (#3234)
This commit is contained in:
@@ -5,7 +5,7 @@ This directory contains the Google Cloud Deploy configuration files for the Nomu
|
||||
## Files
|
||||
|
||||
### `delivery-pipeline.yaml`
|
||||
Defines the `DeliveryPipeline` resource named `deploy-nomulus` and its associated `Automation` resource (`deploy-nomulus/auto-advance-canary`). It sets up the serial pipeline for rolling out changes to different targets and automatically advancing canary rollouts.
|
||||
Defines the `DeliveryPipeline` resource named `deploy-nomulus` and its associated `Automation` resources. It sets up the serial pipeline for rolling out changes to different targets, automatically promoting releases, and automatically advancing canary rollouts.
|
||||
|
||||
### Target Configurations (e.g., `crash-target.yaml`)
|
||||
Files matching this format define the `Target` resources for Cloud Deploy. They specify the GKE cluster and other environment-specific settings for deployment.
|
||||
|
||||
@@ -277,6 +277,23 @@ rules:
|
||||
---
|
||||
apiVersion: deploy.cloud.google.com/v1
|
||||
kind: Automation
|
||||
metadata:
|
||||
name: deploy-nomulus/auto-advance-canary-production
|
||||
description: Automatically advances rollouts from canary-1 to canary-5 phase in production.
|
||||
# Placeholder: Replace with project service account.
|
||||
serviceAccount: serviceAccount
|
||||
selector:
|
||||
targets:
|
||||
- id: production
|
||||
rules:
|
||||
- advanceRolloutRule:
|
||||
id: advance-canary-phases
|
||||
sourcePhases:
|
||||
- "canary-1"
|
||||
wait: 0m
|
||||
---
|
||||
apiVersion: deploy.cloud.google.com/v1
|
||||
kind: Automation
|
||||
metadata:
|
||||
name: deploy-nomulus/auto-promote-crash-to-sandbox
|
||||
description: Automatically promotes release to sandbox after successful rollout in crash.
|
||||
@@ -290,4 +307,19 @@ rules:
|
||||
id: promote-crash-to-sandbox
|
||||
destinationTargetId: "sandbox"
|
||||
wait: 0m
|
||||
|
||||
---
|
||||
apiVersion: deploy.cloud.google.com/v1
|
||||
kind: Automation
|
||||
metadata:
|
||||
name: deploy-nomulus/auto-promote-sandbox-to-production
|
||||
description: Automatically promotes release to production after successful rollout in sandbox.
|
||||
# Placeholder: Replace with project service account.
|
||||
serviceAccount: serviceAccount
|
||||
selector:
|
||||
targets:
|
||||
- id: sandbox
|
||||
rules:
|
||||
- promoteReleaseRule:
|
||||
id: promote-sandbox-to-production
|
||||
destinationTargetId: "production"
|
||||
wait: 0m
|
||||
|
||||
Reference in New Issue
Block a user