harness-community / quarkus-springboot-demo-gitops

Repository to perform the GitOps based deployment of quarkus-springboot-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java CI and GitOps with Drone, Argo CD and Gitea

This repository act as GitOps repo for the https://github.com/kameshsampath/quarkus-springboot-demo app.

Prerequisites

Setup DAG Stack

You need a environment that can help you do CI and GitOps. You can setup one locally as described here https://github.com/kameshsampath/dag-stack.git.

Environment

Let us setup the following variables for convenience,

# directory where you have cloned the dag-stack repo
export DAG_HOME="<directory where you have cloned the dag-stack repo>"
# the argocd project to use
export ARGO_CD_PROJECT="default"
export GIT_URL="http://gitea-127.0.0.1.sslip.io:30950"
export GIT_USER="<your gitea user>
export GIT_REPO="http://gitea-127.0.0.1.sslip.io:30950/${GIT_USER}/quarkus-springboot-demo-gitops.git"

GitOps

Update the App helm $APP_HOME/helm_vars/values.yaml

envsubst < "$APP_HOME/helm_vars/values.tpl.yaml" > "$APP_HOME/helm_vars/values.yaml"

Commit and push the code to git repo,

git commit -a -m "Init GitOps"
git push origin main

Deploy Argo CD application Kubernetes cluster that will use our GitOps repo,

envsubst < $APP_HOME/app.yaml | kubectl apply -f -

About

Repository to perform the GitOps based deployment of quarkus-springboot-demo

License:Apache License 2.0


Languages

Language:Smarty 100.0%