Skip to content

Commit dbd5259

Browse files
committed
ci: fixed tekton lint
1 parent abbe744 commit dbd5259

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: tekton.dev/v1beta1
2+
kind: Task
3+
metadata:
4+
name: generate-test-folders
5+
spec:
6+
params:
7+
- name: node-version
8+
value: $(params.node-version)
9+
- name: npm-version
10+
value: $(params.npm-version)
11+
workspaces:
12+
- name: output
13+
mountPath: /artifacts
14+
steps:
15+
- name: generate-test-folders
16+
image: public.ecr.aws/docker/library/node:$(params.node-version)
17+
imagePullPolicy: IfNotPresent
18+
script: |
19+
#!/bin/bash
20+
21+
ARTIFACTS_PATH="$(workspaces.output.path)"
22+
cd $ARTIFACTS_PATH
23+
24+
if [ -n "$(params.npm-version)" ]; then
25+
npm install npm@$(params.npm-version) -g
26+
fi
27+
28+
node bin/create-version-test-folders.js

0 commit comments

Comments
 (0)