Skip to content

paolocarta/openshift-pipelines-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Openshift Pipelines Workshop

This is a workshop about Openshift Pipelines.

Self link: https://github.com/paolocarta/openshift-pipelines-workshop

Prerequisites:

- Openshift 4.x cluster
- oc cli
- git cli

Setup

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

Steps

The first workshop steps can be found in the folder named "steps". They are sorted with numbers.

Example project

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}'

Releases

No releases published

Packages

No packages published

Languages