Tekton or OpenShift pipelines installed Helm Tekton CLI (Optional)
$ oc create -f https://raw.githubusercontent.com/schen1/container-pipelines/feature/tekton/basic-spring-boot-tekton/.openshift/projects/projects.yml
$ helm upgrade --install springboot-pipelines . -n basic-spring-boot-build
$ oc create -f pipelinerun.yaml -n basic-spring-boot-build
$ tkn pipeline start basic-spring-boot-pipeline \
--resource basic-spring-boot-git=basic-spring-boot-git \
--resource basic-spring-boot-templates=basic-spring-boot-templates \
--resource basic-spring-boot-image=basic-spring-boot-image \
--workspace name=local-maven-repo,claimName=maven-repo-pvc \
-n basic-spring-boot-build
You can add a GitHub webhook that will POST to a JSON event to your Webhook listener:
$ echo "URL: $(oc get route webhook-listener --template='https://{{.spec.host}}' -n basic-spring-boot-build)"
Additional information is available in the references.
Add PVC for maven caching
$ helm delete springboot-pipelines -n basic-spring-boot-build
$ oc delete project basic-spring-boot-build \
basic-spring-boot-dev \
basic-spring-boot-stage \
basic-spring-boot-prod