-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkflow.yaml.j2
43 lines (43 loc) · 1.11 KB
/
workflow.yaml.j2
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
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: build-cpython-
spec:
entrypoint: steps-generator
parallelism: 3
templates:
- name: steps-generator
steps:
- - name: build-cpython
template: build-template
arguments:
{% raw -%}
parameters:
- name: image
value: "{{item.image}}"
- name: build_script
value: "{{item.build_script}}"
{%- endraw %}
withItems:
{% for conf in configurations -%}
- { image: '{{ conf["image"] }}', build_script: '{{conf["build_script"]}}' }
{% endfor %}
- name: build-template
inputs:
parameters:
- name: image
- name: build_script
outputs:
artifacts:
- name: sarif-data
path: /sarif-data
activeDeadlineSeconds: 14400 # 4h
{%- raw %}
metadata:
labels:
build-cpython-id: "{{inputs.parameters.build_script}}"
container:
image: "{{inputs.parameters.image}}"
imagePullPolicy: Always
command: ["./{{inputs.parameters.build_script}}"]
{% endraw %}