Skip to content

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

License

Notifications You must be signed in to change notification settings

kameshsampath/quarkus-springboot-demo-gitops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 dpeloyment of quarkus-springboot-demo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages