Skip to content

Commit

Permalink
feat/tektoncd (#463)
Browse files Browse the repository at this point in the history
* feat(tektoncd): add tektoncd v0.62.1

* ci: add tektoncd

---------

Co-authored-by: Lorenzo Felletti <[email protected]>
  • Loading branch information
Duologic and Lorenzo Felletti authored Oct 11, 2024
1 parent 629084c commit ee057da
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2358,6 +2358,7 @@
- "securecodebox"
- "spicedb-operator"
- "strimzi"
- "tektoncd"
- "teleport-operator"
- "traefik"
- "triggermesh"
Expand Down Expand Up @@ -2558,6 +2559,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/strimzi"
"tektoncd":
"name": "Generate tektoncd Jsonnet library and docs"
"needs":
- "build"
- "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v4"
- "id": "filter"
"uses": "dorny/paths-filter@v3"
"with":
"filters": |
workflows:
- '.github/**'
- 'bin/**'
- 'Dockerfile'
- 'go.mod'
- 'go.sum'
- 'jsonnet/**'
- 'main.go'
- 'Makefile'
- 'pkg/**'
- 'scripts/**'
- 'tf/**'
- 'libs/tektoncd/**'
- "if": "steps.filter.outputs.workflows == 'true'"
"uses": "actions/download-artifact@v4"
"with":
"name": "docker-artifact"
"path": "artifacts"
- "if": "steps.filter.outputs.workflows == 'true'"
"run": "make load"
- "env":
"DIFF": "true"
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
"GIT_COMMITTER_EMAIL": "[email protected]"
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/tektoncd"
"teleport-operator":
"name": "Generate teleport-operator Jsonnet library and docs"
"needs":
Expand Down
31 changes: 31 additions & 0 deletions libs/tektoncd/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
local config = import 'jsonnet/config.jsonnet';

local urlTemplate = 'https://raw.githubusercontent.com/tektoncd/pipeline/v%(version)s/config/300-crds/300-%(crd)s.yaml';
local crds = [
'clustertask',
'customrun',
'pipeline',
'pipelinerun',
'resolutionrequest',
'task',
'taskrun',
'verificationpolicy',
];

local versions = ['0.62.1'];

config.new(
name='tektoncd',
specs=[
{
output: version,
prefix: '^dev\\.tekton.*',
crds: [
urlTemplate % { crd: crd, version: version }
for crd in crds
],
localName: 'tektoncd',
}
for version in versions
]
)

0 comments on commit ee057da

Please sign in to comment.