The Tekton Pipelines project provides Kubernetes-style resources for declaring CI/CD-style pipelines.
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
If you would like more detailed install instructions, or if you are installing on OpenShift, then read these instructions from the Tekton Pipelines documentation.
The Tekton resources are in this tekton/
directory.
kubectl apply -f tekton/
Run the Pipeline by creating a PipelineRun resource such as the following:
cat << EOF | kubectl apply -f -
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
name: myapp
spec:
pipelineRef:
name: myapp
resources:
- name: source
resourceSpec:
type: git
params:
- name: revision
value: master
- name: url
value: https://github.com/ncskier/myapp
EOF
Open http://localhost:3000/ in your web browser.
If you would like to view the PipelineRun logs, then read these instructions from the Tekton Pipelines documentation.
If your Kubernetes environment does not support LoadBalancer services, then change the Service type in the service.yaml file.