This repo is for experimenting with Tekton pipelines
Install Tekton in your Kubernetes cluster:
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml
kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yaml
kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/tekton-dashboard-release.yaml
Mac
brew install tektoncd-cli
Linux
sudo apt update;sudo apt install -y gnupg
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3EFE0E0A2F2F60AA
echo "deb http://ppa.launchpad.net/tektoncd/cli/ubuntu eoan main"|sudo tee /etc/apt/sources.list.d/tektoncd-ubuntu-cli.list
sudo apt update && sudo apt install -y tektoncd-cli
You can find tasks at hub.tekton.dev
You can install tasks using the Tekton CLI (tkn
)
tkn hub install task git-clone
You can run a pipeline using the Tekton CLI:
tkn pipeline start --showlogs .tekton/pipeline.yaml
If working in the terminal in becomes difficult because the command prompt is very long, you can shorten the prompt using the following command:
export PS1="[\[\033[01;32m\]\u@\h\[\033[00m\]: \[\033[01;34m\]\W\[\033[00m\]]\$ "