task-s5cmd-download.yaml
979 Bytes
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
43
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: task-s5cmd-download
spec:
params:
- name: auth-config-map
type: string
default: foo
- name: auth-secret
type: string
default: bar
- name: items
type: array
- name: s5cmd-image
type: string
default: peakcom/s5cmd
workspaces:
- name: files
volumes:
- name: task-s5cmd-scripts
configMap:
name: task-s5cmd-scripts
defaultMode: 0755
steps:
- name: download-files
image: $(params.s5cmd-image)
command: ["/task-s5cmd-scripts/download-files.sh"]
args: ["$(params.items[*])"]
env:
- name: DOWNLOAD_OUTPUT
value: $(workspaces.files.path)
envFrom:
- configMapRef:
name: $(params.auth-config-map)
- secretRef:
name: $(params.auth-secret)
volumeMounts:
- name: task-s5cmd-scripts
mountPath: /task-s5cmd-scripts
---