https://github.com/duologic/tekton-libsonnet
Jsonnet library for Tekton.
https://github.com/duologic/tekton-libsonnet
jsonnet jsonnet-lib tekton
Last synced: 3 months ago
JSON representation
Jsonnet library for Tekton.
- Host: GitHub
- URL: https://github.com/duologic/tekton-libsonnet
- Owner: Duologic
- Created: 2021-08-18T12:43:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T12:44:33.000Z (almost 5 years ago)
- Last Synced: 2025-10-07T07:57:38.561Z (8 months ago)
- Topics: jsonnet, jsonnet-lib, tekton
- Language: Jsonnet
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tekton jsonnet library
Jsonnet library for https://tekton.dev/
## Usage
Install it with jsonnet-bundler:
```console
jb install https://github.com/Duologic/tekton-libsonnet
```
Import into your jsonnet:
```jsonnet
local tekton = import 'github.com/Duologic/tekton-libsonnet/main.libsonnet';
{
tekton: tekton.installation,
git_clone_task: tekton.tasks.task_git_clone,
pipeline:
local pipeline = tekton.core.v1beta1.pipeline;
local workspace = 'ws';
pipeline.new('tanka-pipeline')
+ pipeline.withWorkspace(workspace)
+ pipeline.addTask(
'git-clone',
'git-clone',
workspaces=[{
name: 'output',
workspace: workspace,
}],
params=[{
name: 'url',
value: 'https://github.com/Duologic/tekton-libsonnet.git',
}]
),
}
```