Created
June 29, 2023 05:18
-
-
Save pavanbelagatti/8edeb60fac3de8421273022e4d130c85 to your computer and use it in GitHub Desktop.
Harness Pipeline Template Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template: | |
name: pipeline template Helm Guestbook | |
identifier: pipeline_template_Helm_Guestbook | |
versionLabel: "1.0" | |
type: Pipeline | |
projectIdentifier: TemplatesDemo | |
orgIdentifier: default | |
tags: {} | |
spec: | |
stages: | |
- stage: | |
name: Deploy | |
identifier: Deploy | |
description: "" | |
type: Deployment | |
spec: | |
deploymentType: Kubernetes | |
service: | |
serviceRef: guestbook | |
environment: | |
environmentRef: preprod | |
deployToAll: false | |
infrastructureDefinitions: | |
- identifier: kube_infra | |
execution: | |
steps: | |
- stepGroup: | |
name: Canary Deployment | |
identifier: canaryDepoyment | |
steps: | |
- step: | |
name: Canary Deployment | |
identifier: canaryDeployment | |
type: K8sCanaryDeploy | |
timeout: 10m | |
spec: | |
instanceSelection: | |
type: Count | |
spec: | |
count: 1 | |
skipDryRun: false | |
- step: | |
name: Canary Delete | |
identifier: canaryDelete | |
type: K8sCanaryDelete | |
timeout: 10m | |
spec: {} | |
- stepGroup: | |
name: Primary Deployment | |
identifier: primaryDepoyment | |
steps: | |
- step: | |
name: Rolling Deployment | |
identifier: rollingDeployment | |
type: K8sRollingDeploy | |
timeout: 10m | |
spec: | |
skipDryRun: false | |
rollbackSteps: | |
- step: | |
name: Canary Delete | |
identifier: rollbackCanaryDelete | |
type: K8sCanaryDelete | |
timeout: 10m | |
spec: {} | |
- step: | |
name: Rolling Rollback | |
identifier: rollingRollback | |
type: K8sRollingRollback | |
timeout: 10m | |
spec: {} | |
tags: {} | |
failureStrategies: | |
- onFailure: | |
errors: | |
- AllErrors | |
action: | |
type: StageRollback |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment