Skip to main content

Pipeline

Pipeline defines the pipeline execution.

Properties

  • stages - Stage
    Stages defines a list of pipeline stages.

  • inputs - map[string]Input
    Inputs defines the pipeline input parameters.

  • options - Default
    Options defines global configuration options.

Examples

Example pipeline.

version: 1
kind: pipeline
spec:
stages:
- name: build
type: ci
spec:
steps:
- name: compile
type: run
spec:
container: golang
script: |-
go build
go test

Example pipeline with inputs.

version: 1
kind: pipeline
spec:
inputs:
version:
description: golang version
default: 1.20

stages:
- name: build
type: ci
spec:
steps:
- name: compile
type: run
spec:
container: golang:${{ inputs.version }}
script: |-
go build
go test