Create Trigger Event

Description

Create new trigger-event.

Command

codefresh create trigger-event

Options

Option Alias Default Description
–help Print help information
–type trigger-event type
–kind trigger-event kind
–public wether trigger-event is public (system-wide): can be linked to any pipeline in any account
–secret !generate trigger-event secret (omit to auto-generate)
–value trigger-event specific values pairs (key=value), as required by trigger-type
–context context with credentials required to setup event on remote system

Examples

Create registry/dockerhub trigger-event

codefresh create trigger-event --type registry --kind dockerhub --value namespace=codefresh --value name=fortune --value action=push

Create cron (once in hour) trigger-event

codefresh create trigger-event --type cron --kind codefresh --value expression="0 0 */1 * * *" --value message=hello

Create daily cron trigger-event

codefresh create trigger-event --type cron --kind codefresh --value expression="@daily" --value message=hello-all

Create git trigger-event

codefresh create trigger-event --type git --kind github --value owner=codefresh-io --value name=cf-api --value action=push