Stitch any CI into Tangled

provider/tekton: add tangled metadata as params and workspace config #3ml36zh2epx22

Open opened by and assigned to xeiaso.net
· · targeting main

Hey, thanks for making this! It's helping me move off of GitHub. I'm not totally sure how to best upstream this, your input in how I should amend these commits for productionalization would be very appreciated.

This changeset adds workspace config and passing CI metadata to tekton pipelines including the commit, actor, and branch.

This allows you to do tests against the individual commit being operated against instead of just the most recent commit on HEAD. These are a no-op when pipelines do not use these parameters.

Example usage:

steps:
- name: git-clone
  image: reg.xeiaso.net/xe/x/git:latest
  script: |
    set -euo pipefail
    git clone $(params.url) /workspace/repo-data/repo
    cd /workspace/repo-data/repo
    git checkout $(params.commit)

This also adds pipeline configuration for workspaces:

tack:
  tekton:
    pipeline: kefka-build-test
    workspaces:
      - name: repo-data
        access_modes: ["ReadWriteOnce"]
        storage: 1Gi
      - name: go-mod-cache
        pvc: go-mod-cache

Delete this pull request?

This cannot be undone.

Labels

  • No labels

This pull request has no versions submitted yet.