webhook_bridge/example_pipeline_run.json

71 lines
1.6 KiB
JSON
Raw Normal View History

2024-07-21 19:54:12 +00:00
{
2024-07-21 20:16:17 +00:00
"apiVersion": "tekton.dev/v1",
2024-07-21 19:54:12 +00:00
"kind": "PipelineRun",
"metadata": {
"name": "minimal-test",
"namespace": "lighthouse"
},
"spec": {
"pipelineSpec": {
"tasks": [
{
"name": "echo-variable",
"taskSpec": {
"metadata": {},
"stepTemplate": {
"image": "alpine:3.18",
2024-07-21 20:16:17 +00:00
"computeResources": {
2024-07-21 19:54:12 +00:00
"requests": {
"cpu": "10m",
"memory": "600Mi"
}
}
},
"steps": [
{
"image": "alpine:3.18",
"script": "#!/usr/bin/env sh\necho \"The variable: $(params.LOREM)\"\n"
}
]
},
"params": [
{
"name": "LOREM",
"value": "$(tasks.set-variable.results.ipsum)"
}
]
},
{
"name": "set-variable",
"taskSpec": {
"metadata": {},
"stepTemplate": {
"image": "alpine:3.18",
2024-07-21 20:16:17 +00:00
"computeResources": {
2024-07-21 19:54:12 +00:00
"requests": {
"cpu": "10m",
"memory": "600Mi"
}
}
},
"results": [
{
"name": "ipsum"
}
],
"steps": [
{
"image": "alpine:3.18",
"script": "#!/usr/bin/env sh\necho -n \"dolar\" > \"$(results.ipsum.path)\"\n"
}
]
}
}
]
},
2024-07-21 20:16:17 +00:00
"timeouts": {
"pipeline": "240h0m0s"
}
2024-07-21 19:54:12 +00:00
}
}