Skip to content

codefresh-plugins/argo-codefresh-pipeline-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codefresh pipeline runner Argo Workflows

Codefresh is a CI/CD platform that engineers actually love to use. The Codefresh pipeline runner GitHub action will trigger an existing Codefresh pipeline from a GitHub action.

It is based on the Codefresh CLI which can execute Codefresh pipelines remotely (using an API key for authentication). The Codefresh CLI is already available as a public Docker image, so creating a GitHub action with it is a trivial process.

Prerequisites

Make sure that you have

How the Codefresh action works

The GitHub workflow is placed on the push event and therefore starts whenever a Git commit happens. The Workflow has a single action that starts the Codefresh pipeline runner.

The pipeline runner is a Docker image with the Codefresh CLI. It uses the Codefresh API token to authenticate to Codefresh and then calls a an existing pipeline via its trigger.

The result is that all the details from the Git push (i.e. the GIT hash) are transferred to the Codefresh pipeline that gets triggered remotely

How to use the Codefresh Argo workflow

argo submit -n argo steps.yaml -p 'CF_API_KEY=****' -p 'PIPELINE_NAME=****'

Env variables

Outputs

The action will report if the pipeline execution was successful. For example, if your pipeline has unit tests that fail, by default, it will report the action failed. The logs from the pipeline will be streamed into the Argo workflow console.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published