Some cloud native images that will handle for you some common tekton tasks like:
- Slack messages
- Github comments on pull requests
- Build OCI container images with kaniko or buildkit
- Patch yaml files (with yq)
- Npm or yarn commands (lint, unit tests, etc)
- Etc
It's like the tekton catalog but with images that are built in order to be ready to be used and directly available from the docker hub.
- Main repo: https://gitlab.comwork.io/oss/tekton-task-images
- Github backup mirror: https://github.com/idrissneumann/tekton-task-images
- Gitlab backup mirror: https://gitlab.com/ineumann/tekton-task-images
- Bitbucket backup mirror: https://bitbucket.org/idrissneumann/tekton-task-images
The tasks are available on docker hub, you just have to pull it like that:
$ docker pull comworkio/tekton-utils-{task name}
# for example:
$ docker pull comworkio/tekton-utils-slack-sender
For each directory which corresponds to one task, you'll find a README file that will enumerate all the environment variables you need.
And you'll even find a tekton task yaml example in those directories.
For each environment variable, you need to set it from Task parameter like that:
env:
- name: LOG_LEVEL
value: $(params.LOG_LEVEL)
Or from a secret like that:
env:
- name: GITHUBTOKEN
valueFrom:
secretKeyRef:
name: github-access
key: password
Or from a workspace (tekton shared volume) like that:
env:
- name: TEKTON_WORKSPACE_PATH
value: $(workspaces.NAME_OF_YOUR_WORKSPACE.path)
Here's some screenshots of how those tasks help us to achieve beautiful and working tekton pipelines.