Skip to content

Commit bb7ca90

Browse files
committed
2 parents 1c649b0 + 38766de commit bb7ca90

File tree

6 files changed

+69
-1
lines changed

6 files changed

+69
-1
lines changed

_docs/pipeline-triggers/configure-cron-trigger.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,36 @@ redirect_from:
77
toc: true
88
---
99

10+
## Manage Cron Triggers with Codefresh UI
11+
12+
Use Cron trigger to create a recurrent execution of Codefresh pipeline(s).
13+
14+
It is possible to define and manage Cron-based pipeline triggers with Codefresh UI.
15+
16+
### Create a new Cron Trigger
17+
18+
To add a new Cron trigger, navigate to Codefresh Pipeline *Configuration* view and expand *Triggers* section. Press the `Add Trigger` button and select a `Cron` trigger type to add.
19+
20+
![Create Trigger](/images/create_trigger.png)
21+
22+
Visit [this page](https://github.com/codefresh-io/cronus/blob/master/docs/expression.md) to learn about supported `cron` expression format and aliases.
23+
24+
25+
Fill the following information:
26+
27+
* Use Cron helper wizard to build a valid `cron` expression or write custom `cron` expression on last tab
28+
* Add a free text message, that will be sent as additional event payload every time `cron` is executed
29+
30+
![Add Cron Trigger](/images/cron_trigger.png)
31+
32+
### Triggering Codefresh pipeline with cron timer
33+
34+
Now, `cron` will trigger a recurrent pipeline execution based on defined `cron expression`.
35+
36+
## Manage Cron Triggers with Codefresh CLI
37+
38+
It is possible to use `codefresh` command line client (`CLI`) to manage Cron based pipeline triggers.
39+
1040
### Cron Trigger
1141

1242
It is possible to trigger a Codefresh CD pipeline(s) periodically, using `cron` expression.

_docs/pipeline-triggers/configure-dockerhub-trigger.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,45 @@ redirect_from:
77
toc: true
88
---
99

10-
### DockerHub Trigger
10+
## Manage DockerHub Triggers with Codefresh UI
11+
12+
It is possible to define and manage DockerHub pipeline triggers with Codefresh UI.
13+
14+
### Create a new DockerHub Trigger
15+
16+
To add a new DockerHub trigger, navigate to Codefresh Pipeline *Configuration* view and expand *Triggers* section. Press the `Add Trigger` button and select a `Registry` trigger type to add.
17+
18+
![Create Trigger](/images/create_trigger.png)
19+
20+
Fill the following information:
21+
22+
* Registry Provider - select `DockerHub`
23+
* *Namespace* - put DockerHub user name or organization name here
24+
* *Name* - DockerHub image repository name
25+
* *Action* - select `Push Image` action
26+
* *Filter* - optional filter to specify which image *tags* will trigger pipeline execution: [Re2](https://github.com/google/re2/wiki/Syntax) regular expression
27+
28+
![Add Registry Trigger](/images/dockerhub_trigger_1.png)
29+
30+
### Setup DockerHub Webhook
31+
32+
Currently Codefresh does not support to automatically setup a DockerHub webhook. You need to do this manually. Press `View Trigger` button and see detailed instructions with URL links and secrets of how-to setup a DockerHub Webhook.
33+
34+
![Edit DockerHub Trigger](/images/dockerhub_trigger_edit.png)
35+
36+
1. copy `Endpoint` URL
37+
1. visit DockerHub image settings page following link in help
38+
1. add a new DockerHub Webhook with previously copied `Endpoint` URL
39+
40+
### Triggering Codefresh pipeline with DockerHub push
41+
42+
Now, every time you push a new Docker image to selected DockerHub repository, manually, with Codefresh or any other CI/CD tool, Codefresh will trigger execution of all pipelines associated with this DockerHub Push trigger event.
43+
44+
## Manage DockerHub Triggers with Codefresh CLI
45+
46+
It is possible to use `codefresh` command line client (`CLI`) to manage DockerHub pipeline triggers.
47+
48+
### Docker Hub Trigger
1149

1250
It is possible to trigger a Codefresh CD pipeline(s) when a new Docker image pushed into DockerHub.
1351

images/create_trigger.png

66 KB
Loading

images/cron_trigger.png

131 KB
Loading

images/dockerhub_trigger_1.png

105 KB
Loading

images/dockerhub_trigger_edit.png

205 KB
Loading

0 commit comments

Comments
 (0)