Hi,
I would like to have steps in a pipeline execute when either a specific cron job runs OR when I run a promotion with a specific target
I would like to do something like the following
---
kind: pipeline
type: kubernetes
name: Run on cron or specific promote events
trigger:
event:
- cron
- promote
target:
include:
- foo1
- foo2
platform:
os: linux
arch: amd64
steps:
- name: run_when_cron_job_has_name_cron_foo1_OR_when_promotion_target_is_foo1
image: alpine:latest
commands:
- echo "Triggered by cron job named cron_foo1 OR promotion event with promotion target foo1"
when:
cron:
- cron_foo1
target:
- foo1
- name: run_when_cron_job_has_name_cron_foo2_OR_when_promotion_target_is_foo2
image: alpine:latest
commands:
- echo "Triggered by cron job named cron_foo2 OR promotion event with promotion target foo2"
when:
cron:
- cron_foo2
target:
- foo2
Unfortunately, I cannot seem to get this to work. Any help here would be much appreciated.