Monday, July 03, 2023

Argo CI CD for PRs using Tekton for testing

 The idea is to use both Argo and Tekton for testing PR with e2e tests.  


I will start on Ubuntu and then try to get it running on a Mac Silicon machine.  Note above Bitbucket has been replaced by GitEA


Install requirements

kubectl
kind
postgres client
PostgreSQL on Kubernetes
Argo on Kubernetes
GitEA on Kubernetes

PostgreSQL install (for Bitbucket) :  https://phoenixnap.com/kb/postgresql-kubernetes

Argo install:  https://shashanksrivastava.medium.com/install-configure-argo-cd-on-kind-kubernetes-cluster-f0fee69e5ac4


Both of the above installations are simple via Helm charts.


 

In terminal with psql client:

postgres=# 

Install DBeaver database GUI

sudo snap install dbeaver.ce

Create gitea database


Install GitEA from Helm Chart

https://gitea.com/gitea/helm-chart/

kubectl create secret generic gitea-postgres-secret \

  --from-literal=POSTGRES_USER=<postgres-username> \

  --from-literal=POSTGRES_PASSWORD=<postgres-password> \

  --from-literal=POSTGRES_HOST=<postgres-host> \

  --from-literal=POSTGRES_PORT=<postgres-port> \

  --from-literal=POSTGRES_DB=<postgres-database>


persistence:
  enabled: true
  existingClaim: <existing-pvc-name>

database:
  type: postgres
  host: <postgres-host>
  port: <postgres-port>
  name: <postgres-database>
  user: <postgres-username>
  password: <postgres-password>




helm repo add gitea-charts https://dl.gitea.io/charts/
helm install gitea gitea-charts/gitea --version <chart-version> -f gitea-values.yaml

Create a user in GitEA with a testRepo



No comments: