This repository contains a simple go application!
The directory structure is as follows:
ci- manifests needed for creating the pipeline workflowtekton- an example tekton pipeline, which is referenced in the files from thecidirectory
-
Prerequisites
Flux and Tekton have to be installed on your kubernetes cluster.
-
Install the additional operators
- Pull Request Operator:
kubectl apply -f https://github.com/jquad-group/pullrequest-operator/releases/latest/download/release.yaml
- Pipeline Trigger Operator:
kubectl apply -f https://github.com/jquad-group/pipeline-trigger-operator/releases/latest/download/release.yaml
-
Create the personal token for accessing the Github REST API (set status and clone)
Go to github.com->
Profile->Developer Settings->Personal Access Tokens->Tokens (classic)->Generate new token, and create an access token with the following permissions: -
Replace the string
MY_ACCESS_TOKENin https://github.com/jquad-group/cloudland2023/blob/main/tekton/pipeline.yaml#L10 with your newly created token from3. -
Create the
pipeline-demonamespace and deploy the example pipeline
kubectl create ns pipeline-demo
kubectl apply -f ./tekton/pipeline.yaml -n pipeline-demo
- Deploy everything from the
cidirectory
kubectl apply -f ./ci -n pipeline-demo
- Observe how it works by creating new pull requests and/or new commits
