-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflow_v0.yaml
68 lines (54 loc) · 2 KB
/
workflow_v0.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Workflow API version
ZapOSApiVersion: v1alpha1
# Declares this as workflow
kind: Workflow
# List resources needed by workflow.
resources:
# A resource named `welcome` that is a public git repo. All the fields here are required except branch, which defaults to master.
- name: welcome
type: git
parameters:
url: "git@github.com:theshabh58/hello-world-orquestra.git"
branch: "master"
# Another public git repo resource.
- name: ztransform
type: git
parameters:
url: "git@github.com:zapatacomputing/tutorial-0-ztransform.git"
branch: "master"
# Data to help you easily work with your workflow
metadata:
# Prefix for workflow ID
generateName: welcome-to-orquestra-
# Data for running the workflow
spec:
# Think of this as identifying the `main` function -- this tells the workflow which template to start with
entrypoint: salutations
# Initializing global variables for use in workflow
arguments:
parameters:
# Where output data is stored -- Must be `quantum-engine` for compatibility with Orquestra data services
- s3-bucket: quantum-engine
# Path where output data is stored within the `s3-bucket` -- can be anything you want
- s3-key: tutorials/welcome/
# The steps of the workflow
templates:
# `salutations` is a template that just contains a list of `steps`, which are other templates
- name: salutations
steps:
# This template runs the `welcome-to-orquestra` template in the `welcome` resource
- - name: greeting
template: welcome-to-orquestra
arguments:
parameters:
- resources: [welcome]
# This template runs the `z-transformation` template in the `ztransform` resource
- - name: transform-welcome
template: z-transformation
arguments:
parameters:
- resources: [ztransform]
artifacts:
- name: message
# This template takes in the output artifact from the `welcome` template
from: '{{steps.greeting.outputs.artifacts.welcome}}'