mirror of
https://github.com/tektoncd/catalog.git
synced 2024-10-18 02:19:26 +00:00
Add platforms annotation to several tasks
Annotation about linux/amd64,linux/s390x,linux/ppc64le platforms was added to the latest versions of the npm, wget, write-file, tekton-catalog-publish, pytest, python-coverage tasks. Container image SHAs were updated to use the latest versions with multi-arch support for npm and wget tasks. Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
This commit is contained in:
parent
30f6b1aebf
commit
2bae9d1479
@ -20,6 +20,10 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/np
|
||||
|
||||
- **source**: The place which consists of the project.
|
||||
|
||||
## Platforms
|
||||
|
||||
The Task can be run on `linux/amd64`, `linux/s390x`, and `linux/ppc64le` platforms.
|
||||
|
||||
## Usage
|
||||
|
||||
1. Apply the [`git-clone`](https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.2/git-clone.yaml) task which will help to clone the repository.
|
||||
|
@ -8,6 +8,7 @@ metadata:
|
||||
tekton.dev/pipelines.minVersion: "0.17.0"
|
||||
tekton.dev/categories: Build Tools
|
||||
tekton.dev/tags: build-tool
|
||||
tekton.dev/platforms: "linux/amd64,linux/s390x,linux/ppc64le"
|
||||
spec:
|
||||
description: >-
|
||||
This task can be used to run npm goals on a project.
|
||||
@ -28,7 +29,7 @@ spec:
|
||||
description: The npm goals you want to run.
|
||||
- name: IMAGE
|
||||
type: string
|
||||
default: "docker.io/library/node:12-alpine@sha256:12048cdfd75d944df35f3144132d9bdeee78015fbd6df765edad1be46599b110"
|
||||
default: "docker.io/library/node:12-alpine@sha256:dfbebf17bfb014e1e7068e76325a117bccf8679c68aec6a28514184a209c8bae"
|
||||
description: The node image you want to use.
|
||||
steps:
|
||||
- name: npm-run
|
||||
|
@ -23,6 +23,10 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/py
|
||||
* **SOURCE_PATH**: The path to the source code (_default_: `.`)
|
||||
* **REQUIREMENTS_FILE**: The name of the requirements file inside the source location, with fallback to the requirements file in the root location (_default_: `requirements.txt`)
|
||||
|
||||
## Platforms
|
||||
|
||||
The Task can be run on `linux/amd64`, `linux/s390x`, and `linux/ppc64le` platforms.
|
||||
|
||||
## Usage
|
||||
|
||||
This `TaskRun` runs `pytest` on a repository.
|
||||
|
@ -10,7 +10,7 @@ metadata:
|
||||
tekton.dev/pipelines.minVersion: "0.12.1"
|
||||
tekton.dev/tags: python, pytest
|
||||
tekton.dev/displayName: pytest
|
||||
|
||||
tekton.dev/platforms: "linux/amd64,linux/s390x,linux/ppc64le"
|
||||
spec:
|
||||
description: >-
|
||||
This task will run pytest on the provided input.
|
||||
|
@ -23,6 +23,10 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/py
|
||||
- **SOURCE_PATH**: The path to the source code (_default_: `.`)
|
||||
- **REQUIREMENTS_FILE**: The name of the requirements file inside the source location (_default_: `requirements.txt`)
|
||||
|
||||
## Platforms
|
||||
|
||||
The Task can be run on `linux/amd64`, `linux/s390x`, and `linux/ppc64le` platforms.
|
||||
|
||||
## Usage
|
||||
|
||||
This `TaskRun` runs `pytest` and `coverage` on a repository.
|
||||
|
@ -10,7 +10,7 @@ metadata:
|
||||
tekton.dev/pipelines.minVersion: "0.12.1"
|
||||
tekton.dev/tags: python, coverage
|
||||
tekton.dev/displayName: python coverage
|
||||
|
||||
tekton.dev/platforms: "linux/amd64,linux/s390x,linux/ppc64le"
|
||||
spec:
|
||||
description: >-
|
||||
This task can be used to measure code coverage of Python projects.
|
||||
|
@ -30,6 +30,10 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/te
|
||||
that allows providing a `.docker/config.json` file for tkn to access the container registry. The file should be placed at
|
||||
the root of the Workspace with name `config.json`.
|
||||
|
||||
## Platforms
|
||||
|
||||
The Task can be run on `linux/amd64`, `linux/s390x`, and `linux/ppc64le` platforms.
|
||||
|
||||
## Usage
|
||||
|
||||
1. Passing `REGISTRY` and catalog workspace:
|
||||
|
@ -10,6 +10,7 @@ metadata:
|
||||
tekton.dev/pipelines.minVersion: "0.17.0"
|
||||
tekton.dev/tags: catalog, bundles
|
||||
tekton.dev/displayName: "Publish a Tekton Catalog"
|
||||
tekton.dev/platforms: "linux/amd64,linux/s390x,linux/ppc64le"
|
||||
spec:
|
||||
description: >-
|
||||
This task publishes each Task in a Tekton catalog as a Tekton Bundle.
|
||||
|
@ -16,6 +16,11 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/wg
|
||||
* **url**: The url we want to download file from. _default_: `""`
|
||||
* **filename**: The filename we want to change our file to. _default_: `""`
|
||||
* ****: The wget docker image to be used. Defaults to `mwendler/wget`
|
||||
|
||||
## Platforms
|
||||
|
||||
The Task can be run on `linux/amd64`, `linux/s390x`, and `linux/ppc64le` platforms.
|
||||
|
||||
## Usage
|
||||
|
||||
### Running the Task
|
||||
|
@ -8,6 +8,7 @@ metadata:
|
||||
tekton.dev/pipelines.minVersion: "0.12.1"
|
||||
tekton.dev/categories: CLI
|
||||
tekton.dev/tags: download
|
||||
tekton.dev/platforms: "linux/amd64,linux/s390x,linux/ppc64le"
|
||||
spec:
|
||||
description: >-
|
||||
This task uses wget to download files from the internet to a workspace.
|
||||
@ -32,7 +33,7 @@ spec:
|
||||
- name: wget-option
|
||||
description: The wget docker image to be used
|
||||
type: string
|
||||
default: "docker.io/library/buildpack-deps:stable-curl@sha256:c8b03ed105baa8ff8202d49cc135c5f3cf54b48601678d0b39fd69768d3dccca" #tag: stable-curl
|
||||
default: "docker.io/library/buildpack-deps:stable-curl@sha256:3d5e59c47d5f82a769ad3f372cc9f86321e2e2905141bba974b75d3c08a53e8e" #tag: stable-curl
|
||||
workspaces:
|
||||
- name: wget-workspace
|
||||
description: The folder where we write the wget'ed file to
|
||||
|
@ -16,6 +16,10 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/wr
|
||||
- **mode**: chmod-style mode string to apply to the file. Note that mode will not be applied to created directories.
|
||||
- **contents**: Contents of the file to create. Note that octal numbers need quoting in YAML.
|
||||
|
||||
## Platforms
|
||||
|
||||
The Task can be run on `linux/amd64`, `linux/s390x`, and `linux/ppc64le` platforms.
|
||||
|
||||
## Usage
|
||||
|
||||
This example task generates a random password from the pipeline run's unique id.
|
||||
|
@ -9,6 +9,7 @@ metadata:
|
||||
tekton.dev/categories: Developer Tools
|
||||
tekton.dev/tags: generic
|
||||
tekton.dev/displayName: Write a file
|
||||
tekton.dev/platforms: "linux/amd64,linux/s390x,linux/ppc64le"
|
||||
spec:
|
||||
description: >-
|
||||
Write a file to a workspace
|
||||
|
Loading…
Reference in New Issue
Block a user