-
Notifications
You must be signed in to change notification settings - Fork 579
/
Copy pathwget.yaml
42 lines (41 loc) · 1.16 KB
/
wget.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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/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: "buildpack-deps: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)"]