CI Example catalog
A collection of CI examples for Codefresh pipelines
Codefresh enables you to define the steps of your pipeline in a YAML file. By default, the file is named codefresh.yml
, and is located in the root directory of the repository.
Programming-language specific examples
Codefresh is agnostic as far as programming languages are concerned. All major programming languages are supported:
- Go Web App or Go CLI
- Spring Java app with Maven or Gradle. Also how to upload JAR to Nexus/Artifactory
- Node Express.js App or React.js App
- Php App
- Python Django App
- Ruby On Rails App
- C or C++
- Rust
- C# .NET core
- Scala App
- Android (Mobile)
- NodeJS + Angular2 + MongoDB
Source code checkout examples
You can check out code from one or more repositories in any pipeline phase. Codefresh includes built-in GIT integration with all the popular GIT providers and can be used with git-clone steps.
- Cloning Git repositories using the built-in integration
- Cloning Git repositories using manual Git commands
- Checking out from Subversion, Perforce, Mercurial, etc
Build/push examples
Codefresh has native support for building and pushing Docker containers.
You can also compile traditional applications that are not Dockerized yet.
- Build an Image with the Dockerfile in root directory
- Build an Image by specifying the Dockerfile location
- Build an Image from a different Git repository
- Build and Push an Image
- Build an Image with build arguments
- Share data between steps
- Upload or download from a Google Storage Bucket
- Get Short SHA ID and use it in a CI process
- Call a CD pipeline from a CI pipeline
Unit and integration test examples
Codefresh has support for both unit and integration tests, as well as test reporting.
- Run unit tests
- Run integration tests
- Run integration tests with MongoDB
- Run integration tests with MySQL
- Run integration tests with PostgreSQL
- Run integration tests with Redis
- Populate a database with existing data
- Shared volumes of service from composition step for other yml steps
- Launch Composition
- Launch Composition and define Service Environment variables using a file
- Run multiple kinds of unit tests using fan-in-fan-out parallel pipeline
Code coverage examples
- Run coverage reports with Codecov
- Run coverage reports with Coveralls
- Run coverage reports with Codacy
Secrets examples
Codefresh can automatically export secret key-value pairs using the Vault plugin from the Step Marketplace.