Install Tekton Pipelines into a new Kubernetes cluster with the following command:
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
Monitor it has come up successfully with the below command:
kubectl get pods --namespace tekton-pipelines --watch
Install Tekton CLI (Mac OSX):
brew tap tektoncd/tools
brew install tektoncd/tools/tektoncd-cli
Run the Hello world task:
cd hello-world
tkn task start --filename HelloWorldTask.yaml
And then view the logs w/ the below command:
tkn taskrun logs $(tkn taskrun list | grep -v 'NAME' | cut -f1 -d ' ') -f -n default
kubectl create secret docker-registry regcred \
--docker-server=<DOCKER_SERVER> \
--docker-username=<USERNAME> \
--docker-password=<API_KEY> \
--docker-email=<EMAIL>
Field | Description |
---|---|
DOCKER_SERVER | Artifactory Server Url |
USERNAME | Artifactory User ID |
API_KEY | Artifactory User API Key |
Artifactory User Email |
Deploy all resources:
kubectl apply -f docker-build
Check on your pipeline status:
tkn pipelinerun list
View the logs:
tkn pipelinerun logs $(tkn pipelinerun list | grep -v 'NAME' | cut -f1 -d ' ') -f -n default