This is a workshop about Openshift Pipelines.
Self link: https://github.com/paolocarta/openshift-pipelines-workshop
- Openshift 4.x cluster
- oc cli
- git cli
Define an environment variable GITHUB_USER:
export GITHUB_USER=your-username
Fork this repo: Spring Rest Tekton Pipeline
Access the OCP4 Cluster with GitHub SSO and obtain a token for the oc cli.
In order to install the Openshift Pipelines Operator and clone the sample repo execute this script:
./setup.sh
The tekton pipelines controllers will be installed in the openshift-pipelines project/namespace.
If you do not have the tekton cli yet, execute the following script:
./install-tkn-cli.sh
The first workshop steps can be found in the folder named "steps". They are sorted with numbers.
An example Spring Boot project will be cloned by the setup script. The folder's name is "spring-rest-tekton-pipeline"
If you want to test the pipeline triggering via webhooks you should register a webhook in your forked repo. The Webhook should point to your listener's route.
In order to get the route execute this command in the namespace basic-spring-boot-cicd-$GITHUB_USER (You should be there by default):
oc get route webhook-listener -ojsonpath='{.spec.host}'