@@ -2,67 +2,82 @@ apiVersion: argoproj.io/v1alpha1
2
2
kind : Workflow
3
3
metadata :
4
4
annotations :
5
- ' kube-ci.qutics.com/cacheScope ' : ' project'
6
- ' kube-ci.qutics.com/cacheSize ' : ' 20Gi'
5
+ kube-ci.qutics.com/cacheScope : project
6
+ kube-ci.qutics.com/cacheSize : 20Gi
7
+ creationTimestamp : null
7
8
spec :
9
+ arguments : {}
8
10
entrypoint : run
9
- volumes :
10
- - name : secrets
11
- secret :
12
- secretName : ci-secrets
13
- - name : build-cache
14
- persistentVolumeClaim :
15
- claimName : ' {{workflow.parameters.cacheVolumeClaimName}}'
16
11
templates :
17
- - name : main
18
- steps :
19
- - - name : run
20
- template : run
21
- when : ' {{workflow.parameters.branch}} != "gh-pages"'
22
- - name : run
23
- inputs :
24
- artifacts :
25
- - name : code
26
- path : /src
27
- git :
28
- repo : ' {{workflow.parameters.repo}}'
29
- revision : ' {{workflow.parameters.revision}}'
30
- sshPrivateKeySecret :
31
- name : ci-secrets
32
- key : ssh-private-key
33
- container :
34
- image : ' eu.gcr.io/qubit-registry/tools/node12chrome:latest'
35
- args :
36
- - ' sh'
37
- - ' -c'
38
- - |
39
- set -x
40
- set -e
12
+ - inputs : {}
13
+ metadata : {}
14
+ name : main
15
+ outputs : {}
16
+ steps :
17
+ - - arguments : {}
18
+ name : run
19
+ template : run
20
+ when : ' {{workflow.parameters.branch}} != "gh-pages"'
21
+ - container :
22
+ args :
23
+ - sh
24
+ - -c
25
+ - |
26
+ set -x
27
+ set -e
41
28
42
- cp /.ci-secrets/npmrc $HOME/.npmrc
43
- export XDG_CACHE_HOME=/cache/.cache
44
- export CYPRESS_CACHE_FOLDER=/cache/.cache
45
- npm set cache /cache/npm
46
- PATH=$PATH:$(pwd)/node_modules/.bin
29
+ cp /.ci-secrets/npmrc $HOME/.npmrc
30
+ export XDG_CACHE_HOME=/cache/.cache
31
+ export CYPRESS_CACHE_FOLDER=/cache/.cache
32
+ npm set cache /cache/npm
33
+ PATH=$PATH:$(pwd)/node_modules/.bin
47
34
48
- npm i
49
- npm run lint
50
- npm run coverage
51
- npm run test-ci
52
- workingDir : /src
53
- env :
54
- - name : SAUCE_USERNAME
55
- valueFrom :
56
- secretKeyRef :
57
- name : ci-secrets
58
- key : SAUCE_USERNAME
59
- - name : SAUCE_ACCESS_KEY
60
- valueFrom :
61
- secretKeyRef :
62
- name : ci-secrets
63
- key : SAUCE_ACCESS_KEY
64
- volumeMounts :
65
- - name : secrets
66
- mountPath : /.ci-secrets
67
- - name : build-cache
68
- mountPath : /cache
35
+ npm i
36
+ npm run lint
37
+ npm run coverage
38
+ npm run test-ci
39
+ command :
40
+ - docker-entrypoint.sh
41
+ env :
42
+ - name : SAUCE_USERNAME
43
+ valueFrom :
44
+ secretKeyRef :
45
+ key : SAUCE_USERNAME
46
+ name : ci-secrets
47
+ - name : SAUCE_ACCESS_KEY
48
+ valueFrom :
49
+ secretKeyRef :
50
+ key : SAUCE_ACCESS_KEY
51
+ name : ci-secrets
52
+ image : eu.gcr.io/qubit-registry/tools/node12chrome:latest
53
+ name : " "
54
+ resources : {}
55
+ volumeMounts :
56
+ - mountPath : /.ci-secrets
57
+ name : secrets
58
+ - mountPath : /cache
59
+ name : build-cache
60
+ workingDir : /src
61
+ inputs :
62
+ artifacts :
63
+ - git :
64
+ repo : ' {{workflow.parameters.repo}}'
65
+ revision : ' {{workflow.parameters.revision}}'
66
+ sshPrivateKeySecret :
67
+ key : ssh-private-key
68
+ name : ci-secrets
69
+ name : code
70
+ path : /src
71
+ metadata : {}
72
+ name : run
73
+ outputs : {}
74
+ volumes :
75
+ - name : secrets
76
+ secret :
77
+ secretName : ci-secrets
78
+ - name : build-cache
79
+ persistentVolumeClaim :
80
+ claimName : ' {{workflow.parameters.cacheVolumeClaimName}}'
81
+ status :
82
+ finishedAt : null
83
+ startedAt : null
0 commit comments