For those that have dreamt to hunt crocs
Basic Quarkus app to demonstrate example CI/CD pipeline using Kubernetes
Quarkus comes with a built-in development mode. Run your application with:
mvn compile quarkus:dev
mvn package
will build a native image.
Just follow the JenkinsX installation with Tekton
For example, if using GKE
jx install \
--provider=gke \
--tekton
jx upgrade ingress
Then fork this repo and import it
jx import \
--url https://github.com/GITHUB_USER/croc-hunter-java \
--no-draft \
--pack=maven
Then, any PRs against this repo will be automatically deployed to preview environments.
When they are merged they will be deployed to the staging
environment.
To tail all the build logs
kail -l tekton.dev/pipeline --since=5m
Or in GKE StackDriver logs
resource.type="container"
resource.labels.cluster_name="mycluster"
resource.labels.container_name="build-step-jenkins"
To promote from staging to production just run
jx promote croc-hunter-java --version 0.0.1 --env production
Original work by Lachlan Evenson Continuation of the awesome work by everett-toews.