Trigger the Hello World example pipeline
Now that you have successfully installed the Codefresh runtime, you can trigger one of the Hello World demo pipelines included in the runtime package. The two Hello World example pipelines are triggered by different event conditions:
- Git (GitHub) event
- Calendar (cron) event
For the quick start, let’s focus on the github/hello-world
pipeline.
Create a PAT token
To commit resources for the github/hello-world
pipeline, you need to add a PAT to Codefresh.
- Create your personal token with a valid
expiration
date andscope
withbase64
encoding.
For the pipeline, you needrepo
andadmin-repo.hook
scopes:
- In the Codefresh UI, go to User Settings, add your token.
View pipelines
View the pipelines in Codefresh.
- In the Codefresh UI, go to Delivery Pipelines.
- The
github/hello-world
pipeline has not been triggered as it requires a Git event to trigger it. - The
cron/hello-world
pipeline shows statistics as it has already been triggered based on thecron
interval.
View and update manifest
As Codefresh does not have a workflow for this pipeline, you will configure the Git Source resource in the pipeline’s Manifest tab.
- In the Pipelines page, to drill down, select the pipeline name.
- Select the Manifest tab, and click the arrowhead to expand the resource view.
You can see these resources:
- Event Source (
event-source.git-source.yaml
). - Sensor (
sensor.git-source.yaml
) - Workflow Template (
workflow-template.hellow-world.yaml
)
The pipeline is configured to run on a
PUSH
event in the Git repository.
Codefresh does the following:
- Commits the changes to your Git repository.
- Synchronizes the changes in Git back to your cluster, and updates the
event-source.git-source
resource. - Triggers this pipeline after the
PUSH
event to your repository. - Creates a workflow. View it in the UI, in the Workflows dashboard.
Select view workflow details to see the workflow log.