This repository contains a simple overview demo of OpenShift Pipelines (Tekton), including the new Pipelines-as-code feature.
The demo is based on parts from the excellent E-book Getting GitOps by Wanja Pernaut. Grab a copy yourself from the Red Hat Developers community .
There's two parts of the demo:
- Extend cluster with Tekton API's
- Add Tekton
Pipelines
andTasks
to the cluster from manifests stored in Git (./manifests/pipelines/) - Run simple Pipeline to test and build a Quarkus application and deploy it to a development environment in OpenShift
- CI infrastructure dynamically created in cluster. Everything stored in Git.
- Integrated as a GitHub App, triggers on Pull Request events.
- .tekton/pull-request.yaml
- Installed OpenShift cluster (tested with 4.10)
cluster-admin
privileges (to install OpenShift Pipelines operator)- Configured
settings.env
file environment details
Demo can be installed and configured with the included demo.sh
script.
./demo.sh install
The install script will do the following:
- Install OpenShift Pipelines operator
- Add the
pipelines-as-code
component (currently tech preview) - Create
open-tour-ci
namespace and install CI dependencies (Nexus) - Create
open-tour-dev
namespace and install app servies (PostgreSQL) - Create application
Pipeline
and customTasks
toopen-tour-ci
namespace
Start additional PipelineRuns
with the demo script.
./demo.sh start