parent
59761610bc
commit
a9ed71bb7b
|
@ -1,7 +1,7 @@
|
|||
# infra-tekton-labs
|
||||
Examples of CI/CD used to support Zcash build and testing
|
||||
|
||||
# Environment Tooling Setup
|
||||
# Environment Tooling Setup (Pre-Install/Install)
|
||||
### Install Docker
|
||||
https://docs.docker.com/engine/install/
|
||||
|
||||
|
@ -27,7 +27,8 @@ https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
|
|||
### Install Tkn
|
||||
https://tekton.dev/docs/cli/
|
||||
|
||||
# Setup Local Zcash CI environment
|
||||
# Setup Local Zcash CI Environment
|
||||
Follow the steps below 1-3 to complete a local Zcash Tekton installation, assuming the above dependencies are installed.
|
||||
|
||||
### Create cluster (e.g. micro k8, kind, minicube)
|
||||
1. `kind create cluster --name zcash-tekton-lab`
|
||||
|
@ -49,22 +50,28 @@ https://tekton.dev/docs/cli/
|
|||
|
||||
### Create Tekton Pipeline in cluster
|
||||
See: https://github.com/tektoncd/pipeline for recent version
|
||||
|
||||
2. `kubectl apply -f releases/tekton-pipeline-v0.37.0.yaml`
|
||||
|
||||
(Alternative)
|
||||
|
||||
`kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.37.0/release.yaml`
|
||||
|
||||
### Create Tekton Dashboard in cluster
|
||||
See: https://github.com/tektoncd/dashboard for recent version
|
||||
|
||||
3. `kubectl apply -f releases/tekton-dashboard-readonly-v0.27.0.yaml`
|
||||
|
||||
Validate deployment of Tekton Dashboard & Pipeline
|
||||
|
||||
`kubectl get pods --namespace tekton-pipelines`
|
||||
|
||||
Forward Tekton Dashboard:
|
||||
|
||||
`kubectl --namespace tekton-pipelines port-forward svc/tekton-dashboard 9097:9097 &`
|
||||
|
||||
View Dashboard in Browser:
|
||||
|
||||
`http://localhost:9097/`
|
||||
|
||||
## Create Tekton Task
|
||||
|
@ -75,3 +82,8 @@ tkn task start --showlog zcash-build
|
|||
tkn task delete zcash-build
|
||||
|
||||
## Create Tekton Pipeline
|
||||
kubectl apply -f ./pipeline/zcash-build-pipeline.yml
|
||||
|
||||
tkn pipeline start --showlog zcash-build-pipeline
|
||||
|
||||
tkn pipeline delete zcash-build-pipeline
|
||||
|
|
Loading…
Reference in New Issue