Skip to content

Repository files navigation

Welcome to Codefresh official examples repository!

Here you will find a curated collection of examples of different scenarios you can accomplish with Codefresh. These examples are also integrated in the product documentation and in the Codefresh application under the Examples section.

Each example is a directory in this repo. Inside the directory there can be any kind of files usefull for demonstrating the example. Additionally, each example directory must include 2 special files:

  • readme.md that walks through the scenario and solution, should be writted as a tutorial.
  • codefresh.yaml that is the pipeline yaml file/
  • cfexample.yaml that marks this example for discovery by the Codefresh Examples section and also is a place to describe some metadata about the example.

readme

  1. start with a paragraph describing the scenario
  2. specify the required pipeline variables in a table
  3. walk through every step in the pipeline, explaining non-trivial commands

cfexample.yaml

The cfexample.yaml file should follow the following structure:

title: example1description: just an examplesourceUrl: http://github.com/Codefresh-Examples/Examples/example1baseUrl: http://github.com/Codefresh-Examples/Examples/example1labels:
- category1icon: "icon.png"body: readme.md #optioanlcodefreshfile: codefresh.yaml #optionalextraFiles:
- codefresh.yaml
- kubernetes-deployment.yaml
fieldrequireddefault valuenotes
titleyesnone
descriptionnonone
sourceUrlyeslink to the source of the example
baseUrlnosourceUrlurl to prefix relative links in this yaml with
labelsnonone
iconnodefault iconfor display in Codefresh
bodyno./readme.md
codefreshfilenocodefresh.yamlthe pipeline yaml file
extraFilesnononefiles to highlight when browsing this example in Codefresh

Note: concatenating baseUrl with other relative URLs in the same yaml should result in a valid URL

Contributions

Contributions are welcome! Feel free to submit pull requests. If you find any issue with one of the example, or want to request an example, feel free to open an issue.

About

Codefresh official examples repository

Resources

Stars

6 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages