-
Notifications
You must be signed in to change notification settings - Fork 541
/
basic-pipeline.yml
53 lines (53 loc) · 1.52 KB
/
basic-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
pipeline:
name: basic
identifier: basic
projectIdentifier: default_project
orgIdentifier: default
tags: {}
stages:
- stage:
name: hello_http
identifier: hello_http
description: ""
type: Deployment
spec:
deploymentType: GoogleCloudFunctions
deploymentMetadata:
environmentType: GenTwo
service:
serviceRef: hello_http
serviceInputs:
serviceDefinition:
type: GoogleCloudFunctions
spec:
artifacts:
primary:
primaryArtifactRef: <+input>
sources: <+input>
environment:
environmentRef: harnessdevenv
deployToAll: false
infrastructureDefinitions:
- identifier: gcpk8s
execution:
steps:
- step:
name: Deploy Cloud Function
identifier: deployCloudFunction
type: DeployCloudFunction
timeout: 10m
spec: {}
rollbackSteps:
- step:
name: Rollback Cloud Function
identifier: cloudFunctionRollback
type: CloudFunctionRollback
timeout: 10m
spec: {}
tags: {}
failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: StageRollback