This repository act as GitOps repo for the https://github.com/kameshsampath/quarkus-springboot-demo app.
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.
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"
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 -