├── LICENSE ├── README.md ├── netflix ├── README.md ├── spinnaker-testing │ └── README.md └── spinnaker │ ├── README.md │ ├── bakeAndTag.yml │ ├── deployFromCluster.yml │ ├── deployFromImageTags.yml │ └── deployToEnvRoot.yml └── workshop ├── deploy-template.yml ├── extended-deploy-template.yml └── wait-template.yml /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pipeline-templates 2 | 3 | A public collection of Spinnaker declarative pipeline templates. 4 | 5 | ## Resources 6 | 7 | * [dcd-spec](https://github.com/spinnaker/dcd-spec) 8 | * [dcd getting started](https://github.com/spinnaker/dcd-spec/blob/master/ALPHA-GETTING-STARTED.md) 9 | * [orca-pipelinetemplate (implementation)](https://github.com/spinnaker/orca/tree/master/orca-pipelinetemplate) 10 | -------------------------------------------------------------------------------- /netflix/README.md: -------------------------------------------------------------------------------- 1 | # netflix pipeline templates 2 | 3 | These pipeline templates **are not** templates that are strictly used internally 4 | at Netflix, but are templates that are similar to what we recommend to our 5 | product teams as the foundational best practice. Often times, these templates 6 | are extended for additional use. 7 | 8 | This directory is broken down by application. 9 | -------------------------------------------------------------------------------- /netflix/spinnaker-testing/README.md: -------------------------------------------------------------------------------- 1 | # netflix spinnaker testing 2 | 3 | At Netflix, we continually run a suite of functional test pipelines to verify 4 | real world, critical path features are working. These are a subselection of the 5 | pipelines we run on cron (every 10 minutes). 6 | 7 | If you're doing active development of Spinnaker, or have a test stack deployed 8 | to vet new versions prior to deployment, these might be a helpful start. 9 | -------------------------------------------------------------------------------- /netflix/spinnaker/README.md: -------------------------------------------------------------------------------- 1 | # netflix spinnaker templates 2 | 3 | **IMPORTANT: These templates have been scrubbed of Netflix-specific defaults. 4 | If you try to use them - they won't work. Look in the templates for areas where 5 | `omitted` has been flagged to see what would need to be updated for your use.** 6 | 7 | Spinnaker is a centrally run product at Netflix, which we deploy continuously 8 | as development happens. These are templates that similar to the ones our team 9 | uses to deploy Spinnaker itself. Our clouddriver deployment pipelines are 10 | different enough from the other services that it is not represented here. 11 | 12 | You'll find 4 different templates: 13 | 14 | 1. Bake & Tag 15 | 2. Deploy to Env Root 16 | 3. Deploy From Cluster (extends 2) 17 | 4. Deploy From Image Tags (extends from 2) 18 | 19 | The end-result pipelines that are created from these templates look like so: 20 | 21 | ``` 22 | 1. Bake & Tag (triggered from Jenkins) 23 | 2. Deploy to Test, uses Deploy from Image Tags (triggered by #1) 24 | 3. Promote to Staging, uses Deploy from Cluster (triggered by #2) 25 | 4. Promote to Prod, uses Deploy from Cluster (manually trigger) 26 | 4b. Promote to Failover (this is part of the Env Root template, but is not 27 | currently present in these examples) 28 | ``` 29 | 30 | While these templates work well for us, your milage may vary depending on your 31 | usage of Spinnaker itself. 32 | -------------------------------------------------------------------------------- /netflix/spinnaker/bakeAndTag.yml: -------------------------------------------------------------------------------- 1 | schema: '1' 2 | id: bakeAndTagImages 3 | metadata: 4 | name: Bake + Tag 5 | description: |- 6 | Defines a bake & tag pipeline that is used as the ingress pipeline for all 7 | application deployments. 8 | owner: example@example.com 9 | protect: false 10 | configuration: 11 | concurrentExecutions: 12 | parallel: true 13 | limitConcurrent: true 14 | triggers: 15 | - type: jenkins 16 | job: package-{{ application }} 17 | master: spinnaker 18 | propertyFile: '' 19 | enabled: true 20 | parameters: [] 21 | notifications: [] 22 | variables: 23 | - name: bakeRegions 24 | type: list 25 | stages: 26 | - id: bake 27 | type: bake 28 | name: Bake 29 | config: 30 | baseLabel: release 31 | baseOs: trusty 32 | cloudProviderType: aws 33 | enhancedNetworking: false 34 | extendedAttributes: {} 35 | package: "{{ application }}" 36 | regions: | 37 | {% for region in bakeRegions %} 38 | - {{ region }} 39 | {% endfor %} 40 | showAdvancedOptions: false 41 | storeType: ebs 42 | user: "{{ application }}" 43 | vmType: hvm 44 | - id: tagImages 45 | type: upsertImageTags 46 | dependsOn: 47 | - bake 48 | name: Tag Image 49 | config: 50 | cloudProvider: aws 51 | cloudProviderType: aws 52 | tags: 53 | stack: test 54 | 55 | -------------------------------------------------------------------------------- /netflix/spinnaker/deployFromCluster.yml: -------------------------------------------------------------------------------- 1 | schema: '1' 2 | id: deployFromCluster 3 | source: https://raw.githubusercontent.com/robzienert/pipeline-templates/master/netflix/spinnaker/deployToEnvRoot.yml 4 | metadata: 5 | name: Deploy to Target Env from Cluster 6 | description: |- 7 | Defines a deploy pipeline to a target account, sourcing the deployment 8 | artifact from a find image from cluster stage. 9 | owner: example@example.com 10 | protect: false 11 | configuration: {} 12 | variables: 13 | - name: sourceCluster 14 | description: The cluster to find the deployment image from 15 | - name: sourceCredentials 16 | description: The account credentials name that the source cluster is in 17 | stages: 18 | - id: findImages 19 | type: findImage 20 | inject: 21 | first: true 22 | name: Find Image from Cluster 23 | config: 24 | cloudProvider: aws 25 | cloudProviderType: aws 26 | cluster: "{{ sourceCluster }}" 27 | credentials: "{{ sourceCredentials }}" 28 | onlyEnabled: true 29 | selectionStrategy: NEWEST 30 | -------------------------------------------------------------------------------- /netflix/spinnaker/deployFromImageTags.yml: -------------------------------------------------------------------------------- 1 | schema: '1' 2 | id: deployFromImageTags 3 | source: https://raw.githubusercontent.com/robzienert/pipeline-templates/master/netflix/spinnaker/deployToEnvRoot.yml 4 | metadata: 5 | name: Deploy to Target Env from Image Tags 6 | description: |- 7 | Defines a deploy pipeline to a target account, sourcing the deployment 8 | artifact from an find image from tags stage. 9 | owner: example@example.com 10 | protect: false 11 | configuration: {} 12 | variables: 13 | - name: findImageRegion 14 | description: The region to find the AMI in 15 | stages: 16 | - id: findImages 17 | type: findImageFromTags 18 | inject: 19 | first: true 20 | name: Find Image from Tags 21 | config: 22 | cloudProvider: aws 23 | cloudProviderType: aws 24 | packageName: "{{ application }}" 25 | regions: 26 | - "{{ findImageRegion }}" 27 | tags: 28 | stack: test 29 | -------------------------------------------------------------------------------- /netflix/spinnaker/deployToEnvRoot.yml: -------------------------------------------------------------------------------- 1 | schema: '1' 2 | id: deployToEnvRoot 3 | metadata: 4 | name: Deploy to Target Env Root Template 5 | description: |- 6 | Defines a deploy pipeline that pushes to the target account, gated by a 7 | manual judgement. This template should not be used directly. 8 | owner: example@example.com 9 | protect: false 10 | configuration: 11 | concurrentExecutions: 12 | parallel: true 13 | limitConcurrent: true 14 | triggers: [] 15 | parameters: [] 16 | notifications: [] 17 | variables: 18 | - name: targetCredentials 19 | description: The account credentials where the application will be deployed to 20 | defaultValue: mgmt 21 | - name: clusters 22 | description: A list of cluster-specific configuration options 23 | type: object 24 | example: | 25 | - name: orca-test 26 | region: us-west-2 27 | availabilityZones: [] # Omitted from example 28 | capacity: 1 29 | keyPair: example-keypair 30 | loadBalancers: 31 | - orca-test 32 | securityGroups: [] # Omitted from example 33 | strategy: highlander 34 | instanceType: m3.xlarge 35 | - name: deployToFailover 36 | description: Whether or not to deploy into the failover region. 37 | defaultValue: false 38 | stages: 39 | # IMPORTANT: Templates extending this root template must inject a stage before 40 | # manual judgement to ensure the images are found (either from tags, or cluster) 41 | - id: manualJudgment 42 | type: manualJudgment 43 | name: Approve {{ targetCredentials }} 44 | config: 45 | failPipeline: true 46 | instructions: Do you approve of this pipeline, which will push {{ application }} to {{ targetCredentials }}? 47 | judgmentInputs: [] 48 | notifications: 49 | - address: spinnaker 50 | level: stage 51 | type: slack 52 | when: 53 | - manualJudgment 54 | propagateAuthenticationContext: true 55 | sendNotifications: true 56 | - id: deploy 57 | type: deploy 58 | dependsOn: 59 | - manualJudgment 60 | name: Deploy 61 | config: 62 | clusters: | 63 | {% for c in clusters %} 64 | - {% module deployCluster 65 | account=targetCredentials, 66 | cluster=c.name, 67 | region=c.region, 68 | availabilityZones=c.availabilityZones, 69 | capacity=c.capacity, 70 | keyPair=c.keyPair, 71 | loadBalancers=c.loadBalancers, 72 | securityGroups=c.securityGroups, 73 | strategy=c.strategy, 74 | instanceType=c.instanceType %} 75 | {% endfor %} 76 | 77 | modules: 78 | - id: deployCluster 79 | variables: 80 | - name: account 81 | - name: cluster 82 | - name: region 83 | - name: availabilityZones 84 | type: list 85 | - name: capacity 86 | - name: keyPair 87 | - name: loadBalancers 88 | type: list 89 | - name: securityGroups 90 | type: list 91 | - name: strategy 92 | - name: instanceType 93 | definition: 94 | account: "{{ account }}" 95 | application: "{{ application }}" 96 | availabilityZones: | 97 | {{ region }}: 98 | {% for az in availabilityZones %} 99 | - {{ az }} 100 | {% endfor %} 101 | capacity: 102 | desired: "{{ capacity }}" 103 | max: "{{ capacity }}" 104 | min: "{{ capacity }}" 105 | cloudProvider: aws 106 | cooldown: 300 107 | ebsOptimized: false 108 | freeFormDetails: "{{ cluster|frigga('detail') }}" 109 | healthCheckGracePeriod: 0 110 | healthCheckType: EC2 111 | iamRole: "{{ application }}ExampleRole" # Omitted from example 112 | instanceMonitoring: true 113 | instanceType: "{{ instanceType }}" 114 | keyPair: "{{ keyPair }}" 115 | loadBalancers: | 116 | {% for lb in loadBalancers %} 117 | - {{ lb }} 118 | {% endfor %} 119 | maxRemainingAsgs: "{% if application == 'orca' %}3{% else %}1{% endif %}" 120 | provider: aws 121 | securityGroups: | 122 | {% for sg in securityGroups %} 123 | - {{ sg }} 124 | {% endfor %} 125 | stack: "{{ cluster|frigga('stack') }}" 126 | strategy: "{{ strategy }}" 127 | subnetType: example # Omitted from example 128 | suspendedProcesses: [] 129 | tags: {} 130 | targetHealthyDeployPercentage: 100 131 | terminationPolicies: 132 | - Default 133 | useSourceCapacity: false 134 | -------------------------------------------------------------------------------- /workshop/deploy-template.yml: -------------------------------------------------------------------------------- 1 | schema: "1" 2 | id: template-deploy 3 | metadata: 4 | description: Deploy to account template 5 | name: deploy to account 6 | owner: sample@sample.com 7 | scopes: 8 | - global 9 | protect: false 10 | configuration: 11 | concurrentExecutions: 12 | limitConcurrent: true 13 | triggers: 14 | - account: dockerhub 15 | enabled: true 16 | name: dockertrigger 17 | organization: spinnaker 18 | registry: index.docker.io 19 | repository: spinnaker/workshop-demo 20 | type: docker 21 | variables: 22 | - name: deployAccount 23 | description: The account where the application will be deployed to 24 | defaultValue: workshop 25 | - name: deployStack 26 | description: The stack to deploy to 27 | defaultValue: dev 28 | - name: deployTag 29 | description: The tag of the docker image to deploy 30 | example: Pick from blue, orange, purple, red, or white 31 | defaultValue: purple 32 | stages: 33 | - config: 34 | clusters: 35 | - account: "{{ deployAccount }}" 36 | application: "{{ application }}" 37 | cloudProvider: kubernetes 38 | containers: 39 | - args: [] 40 | command: [] 41 | envFrom: [] 42 | envVars: [] 43 | imageDescription: 44 | account: dockerhub 45 | imageId: "index.docker.io/spinnaker/workshop-demo:{{ deployTag }}" 46 | registry: index.docker.io 47 | repository: spinnaker/workshop-demo 48 | tag: "{{ deployTag }}" 49 | imagePullPolicy: ALWAYS 50 | limits: {} 51 | name: spinnaker-workshop-demo 52 | ports: 53 | - containerPort: 80 54 | name: http 55 | protocol: TCP 56 | readinessProbe: 57 | failureThreshold: 3 58 | handler: 59 | execAction: 60 | commands: [] 61 | httpGetAction: 62 | path: / 63 | port: 80 64 | uriScheme: HTTP 65 | tcpSocketAction: 66 | port: 80 67 | type: HTTP 68 | initialDelaySeconds: 10 69 | periodSeconds: 10 70 | successThreshold: 1 71 | timeoutSeconds: 1 72 | requests: {} 73 | volumeMounts: [] 74 | dnsPolicy: ClusterFirst 75 | events: [] 76 | initContainers: [] 77 | interestingHealthProviderNames: 78 | - KubernetesContainer 79 | - KubernetesPod 80 | loadBalancers: 81 | - "{{ application }}-{{ deployStack }}" 82 | namespace: default 83 | nodeSelector: {} 84 | podAnnotations: {} 85 | provider: kubernetes 86 | region: default 87 | replicaSetAnnotations: {} 88 | securityGroups: [] 89 | stack: "{{ deployStack }}" 90 | strategy: highlander 91 | targetSize: 1 92 | terminationGracePeriodSeconds: 30 93 | tolerations: [] 94 | volumeSources: [] 95 | id: deploy1 96 | inheritanceControl: {} 97 | inject: {} 98 | name: Deploy 99 | type: deploy -------------------------------------------------------------------------------- /workshop/extended-deploy-template.yml: -------------------------------------------------------------------------------- 1 | schema: "1" 2 | id: manual-judge-deploy-template 3 | source: spinnaker://template-deploy 4 | metadata: 5 | name: deploy with manual judgment 6 | description: deploy to an account with a manual judgment before hand 7 | owner: sample@sample.com 8 | scopes: 9 | - global 10 | variables: 11 | - name: judgeMessage 12 | description: User message for judgment 13 | defaultValue: Please judge me. Do you want to continue? 14 | stages: 15 | - id: judgy 16 | type: manualJudgment 17 | config: 18 | instructions: "{{ judgeMessage }}" 19 | inject: 20 | first: true 21 | -------------------------------------------------------------------------------- /workshop/wait-template.yml: -------------------------------------------------------------------------------- 1 | schema: "1" 2 | id: wait-template 3 | metadata: 4 | name: Simple wait template 5 | description: Extensible root template 6 | owner: sample@sample.com 7 | scopes: 8 | - global 9 | variables: 10 | - name: waitTime 11 | description: The time a wait stage should pause 12 | type: int 13 | stages: 14 | - id: wait1 15 | type: wait 16 | config: 17 | waitTime: "{{ waitTime }}" # Variables can be used anywhere 18 | --------------------------------------------------------------------------------