GithubHelp home page GithubHelp logo

automate-ci-demo's Introduction

Automate the automation - CI demo

Overview

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:

1. Create and run Tekton pipeline in the cluster

  • Extend cluster with Tekton API's
  • Add Tekton Pipelines and Tasks 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

pipeline-simple

2. Use pipelines-as-code to run pipelines in cluster

  • CI infrastructure dynamically created in cluster. Everything stored in Git.
  • Integrated as a GitHub App, triggers on Pull Request events.
  • .tekton/pull-request.yaml

Demo time

Prerequisites

  • Installed OpenShift cluster (tested with 4.10)
  • cluster-admin privileges (to install OpenShift Pipelines operator)
  • Configured settings.env file environment details

Install demo

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 custom Tasks to open-tour-ci namespace

Start Pipeline

Start additional PipelineRuns with the demo script.

./demo.sh start

automate-ci-demo's People

Contributors

jwennerberg avatar

Watchers

Henrik Loevborg avatar Timo Friman avatar Ilkka Tengvall avatar  avatar  avatar  avatar Richard avatar Håkan Hagenrud avatar Magnus Glantz avatar Johan Robinson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.