Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-6450

Onboard chains on konflux

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • Pipelines 1.17.0
    • None
    • p12n
    • None
    • 3
    • Pipelines Sprint Pioneers 14

      This issues tracks the initial work to be done to onboard chains custom task on konflux.

      • Repository: openshift-pipelines/tektoncd-chains
      • konflux resources present (application, components, test, …)
      • tekton resources present (push/pull-request pipelinerun and pipelines)
      • GitHub workflows present (update upstream, …)

      Requirements

      • Builds are green
      • Ideally, tests are green (entreprise-contract) one
      β€’ Fork the repository you want
      β€’ Reset the `main' branch
        β”Œβ”€β”€β”€β”€
        β”‚ git clone git@github.com:openshift-pipelines/tektoncd-chains
        β”‚ git checkout -b old-main
        β”‚ git branch --delete main
        β”‚ git checkout --orphan main
        β”‚ git rm --cached -r .
        β”‚ git commit --allow-empty -m "[openshift-pipelines/tektoncd-chains] Initial commit"
        β”‚ rm -fR * # Clean everything (but .git)
        β”‚ # Create a README
        β”‚ mkdir -p patches openshift/dockerfiles .tekton .github/workflows .konflux
        β”‚ cat > openshift/README.md <<EOF
        β”‚ # \`openshift\` specific files
        β”‚ EOF
        β”‚ cat > .konflux/README.md <<EOF
        β”‚ # \`konflux-ci\` manifests
        β”‚ 
        β”‚ This folder contains [\`konflux-ci\`](konfluxci) configuration that is synced with the konflux-ci cluster.
        β”‚ 
        β”‚ [konfluxci]: https://konflux-ci.dev/
        β”‚ EOF
       Β β”‚ cat > README.md <<EOF Β  Β 
        β”‚ # \`openshift-pipelines/tektoncd-chains\` *fork*This is a "managed" fork of [\`tektoncd/chains\`](tektoncdchains) that is used in OpenShift     Pipelines. Β  
        β”‚ Β It is merely some patches and automation, and doesn't contains any specific code.[tektoncdchains]: https://github.com/tektoncd/chains Β  
        β”‚ EOF Β  
        β”‚ touch openshift/dockerfiles/.placeholder patches/.placeholder .tekton/.placeholder .github/workflows/.placeholder
        β”‚ git add README.md patches openshift .tekton .github .konflux
        β”‚ git commit -s -m "Bootstrap the repository structure"
        β”‚ git push -fu origin main
        β”‚ 
        β”‚ # Fetch the sources
        β”‚ git clone https://github.com/tektoncd/triggers upstream
        β”‚ pushd upstream
        β”‚ git rev-parse HEAD > ../head
        β”‚ popd
        β”‚ rm -fR upstream/.git
        β”‚ git add head upstream
        β”‚ git commit -s -m "Fetch tektoncd/chains at $(cat head)"
        β”‚ git push origin main
        └────
      β€’ Create a pull-request with the configuration See
        <https://github.com/openshift-pipelines/hack/pull/13>
      β€’ Add `openshift-pipelines-bot' as a maintainer of the repository
      β€’ Install the konflux application on the repository
      β€’ Merge the pull-request from `hack'
      β€’ Merge the pull-request that `hack' created in your repository
        (`tektoncd-triggers')
      β€’ Apply `.konflux' in the cluster
      β€’ Adjust the dockerfiles, …
      

              sashture Savita .
              vdemeest Vincent Demeester
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: