Skip to content

Latest commit

 

History

History
81 lines (62 loc) · 3.26 KB

cicd.md

File metadata and controls

81 lines (62 loc) · 3.26 KB

CI/CD Pipelines

Code Repository

The source code repository provides a single source of truth for the software code and manages code versions, branches and users who can update the code.

Artifact Management

A build process may generate several artifacts that are needed for the CI/CD pipeline or for deploying software.

Continuous Integration

The CI is a software development process where new code changes are regularly built, tested and merged into source code repository by the engineering team. The code checkin to the source code kicks an automated process to validate build using automated tests to identify bugs and integration issues. Thus, it reduces amount of time for manual testing and expedites shipping high quality code to the production environment.

Continuous Delivery and Deployment

The continuous delivery & deployment automates the release to production instead of manual approval and deployment process.

Building CI/CD with Formicary

You can implement CI/CD by defining a job configuration and then uploading it to the server. The steps in a build processes can be mapped to the tasks in the job configuration where each task can map to the stage in build process such as compile, test, deploy, etc.

Job Parameters and Variables

See Variables and Request Parameters for setting up variables and parameters for the job configuration and request parameters, e.g.

job_variables:
  Target: world

The job configuration uses GO templates, so you can use parameters or variables to replace the values, e.g.

    - echo "{{.Target}}" > world.txt

Environment Variables

See Environment Variables for configuring environment variables that you can access them inside the container, e.g.

   environment:
     REGION: seattle

Job / Organization Configs

See Job / Organization Configs for managing secure configurations at job and organization level.

Access Tokens for Source Code Repositories

See Accessing Source Code Repositories for accessing source code repositories.

Starting Job Manually

See Scheduling Manually for scheduling job manually. You can submit a job as follows:

Scheduling Job in future

See Job Scheduling for submitting a job at scheduled.

Scheduling Job with regular interval

See Job Filtering for scheduling job at a regular interval.

Github-Webhooks

See Github-Webhooks for scheduling job using GitHub webhooks.

PostCommit Hooks

See Post-commit hooks for scheduling job using git post-commit hooks.

Filtering Job Request

See Job Filtering for filtering scheduled job.

CI/CD Pipelines with Formicary

Following examples show how you can use artifact-store, docker/kubernetes and directed acyclic graph support in formicary to build CI/CD solutions: