1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/wget/0.1/wget.yaml
PuneetPunamiya 5a3e5f630f Adds category field as an annotation as tekton.dev/categories
- Initially all tags were mapped to categories in Hub,
     for e.g. config.yaml: https://github.com/tektoncd/hub/blob/master/config.yaml,
     so whenever a new tag was added in a task it was mapped to a category called `others`.
     Hence before every release we had to manually map these new tags to some category,
     hence after the discussion in Catalog and Hub WG, a proposal was created for adding
     a category as an annotation.

   - PR to update the TEP-0003-Tekton Catalog Organization: https://github.com/tektoncd/community/pull/352

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-07-26 13:15:08 +01:00

44 lines
1.3 KiB
YAML

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: wget
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/categories: CLI
tekton.dev/tags: download
spec:
description: >-
This task uses wget to download files from the internet to a workspace.
params:
- name: url
description: The url we want to download file from
type: string
default: ""
- name: diroptions
description: The directory path we want to save file to
type: array
default: []
- name: options
description: The arguments to pass to wget
type: array
default: []
- name: filename
description: The filename we want to change our file to
type: string
default: ""
- 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
workspaces:
- name: wget-workspace
description: The folder where we write the wget'ed file to
steps:
- name: wget
image: "$(params.wget-option)"
command: [wget]
args: ["$(params.options[*])", "$(params.url)", "$(params.diroptions[*])", "$(workspaces.wget-workspace.path)/$(params.filename)"]