GithubHelp home page GithubHelp logo

global19-atlassian-net / tektoncd-triggers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openshift/tektoncd-triggers

0.0 2.0 0.0 27.98 MB

Event triggering with Tekton!

License: Apache License 2.0

Shell 72.81% Makefile 20.36% Dockerfile 6.82%

tektoncd-triggers's Introduction

Openshift Tektoncd Pipeline

This repository holds Openshift's fork of tektoncd/triggers with additions and fixes needed only for the OpenShift side of things.

List of releases

How this repository works ?

The master branch holds up-to-date specific openshift files that are necessary for CI setups and maintaining it. This includes:

  • Scripts to create a new release branch from upstream
  • CI setup files
    • operator configuration (for Openshift's CI setup)
    • tests scripts
  • Operator's base configurations

Each release branch holds the upstream code for that release and our openshift's specific files.

CI Setup

For the CI setup, two repositories are of importance:

  • This repository
  • openshift/release which contains the configuration of CI jobs that are run on this repository

All of the following is based on OpenShift’s CI operator configs. General understanding of that mechanism is assumed in the following documentation.

The job manifests for the CI jobs are generated automatically. The basic configuration lives in the /ci-operator/config/openshift/tektoncd-pipeline folder of the openshift/release repository. These files include which version to build against (OCP 4.0 for our recent cases), which images to build (this includes all the images needed to run Knative and also all the images required for running e2e tests) and which command to execute for the CI jobs to run (more on this later).

Before we can create the ci-operator configs mentioned above, we need to make sure there are Dockerfiles for all images that we need (they’ll be referenced by the ci-operator config hence we need to create them first). The generate-dockerfiles.sh script takes care of creating all the Dockerfiles needed automatically. The files now need to be committed to the branch that CI is being setup for.

The basic ci-operator configs mentioned above are generated via the generate-release.sh file in the openshift/tektoncd-pipeline repository. They are generated to alleviate the burden of having to add all possible test images to the manifest manually, which is error prone.

Once the file is generated, it must be committed to the openshift/release repository, as the other manifests linked above. The naming schema is openshift-tektoncd-pipeline-BRANCH.yaml, thus the files existing already correspond to our existing releases and the master branch itself.

After the file has been added to the folder as mentioned above, the job manifests itself will need to be generated as is described in the corresponding ci-operator documentation.

Once all of this is done (Dockerfiles committed, ci-operator config created and job manifests generated) a PR must be opened against openshift/release to include all the ci-operator related files. Once this PR is merged, the CI setup for that branch is active.

Create a new release

Deliverables:

  • Tagged images on quay.io
  • An OLM manifest referencing these images
  • Install documentation

High-level steps for a release

tektoncd-triggers's People

Contributors

khrm avatar openshift-merge-robot avatar piyush-garg avatar chmouel avatar bbrowning avatar pradeepitm12 avatar pradeepti123 avatar

Watchers

James Cloos avatar  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.