Skip to content

Commit ea5a877

Browse files
committed
defining the workflow for the CI
1 parent 511eee8 commit ea5a877

1 file changed

Lines changed: 34 additions & 13 deletions

File tree

.circleci/config.yml

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
version: 2.1
2+
23
orbs:
3-
anchore-engine: anchore/anchore-engine@1.2.0
4+
anchore: anchore/anchore-engine@1.2.0
5+
46
jobs:
5-
build:
7+
8+
"fdk":
69
docker:
710
- image: circleci/node
811
working_directory: ~/go/src/github.com/fnproject/fdk-node
@@ -15,9 +18,6 @@ jobs:
1518
node --version
1619
npm --version
1720
- checkout
18-
- run:
19-
command: |
20-
sudo npm install -g snyk
2121
- run:
2222
name: "test"
2323
command: |
@@ -38,47 +38,68 @@ jobs:
3838
./build-images.sh 11
3939
./release_images.sh
4040
fi
41-
local_image_scan:
41+
"node8_security_check":
4242
executor: anchore/anchore_engine
4343
working_directory: ~/go/src/github.com/fnproject/fdk-node
4444
steps:
4545
- checkout
46-
4746
- run:
4847
name: Node.JS 8 build
4948
command: |
5049
./build-images.sh 8
5150
- anchore/analyze_local_image:
5251
image_name: fnproject/node:8-dev
5352
timeout: '500'
54-
analysis_fail: True
53+
policy_failure: true
5554
- anchore/analyze_local_image:
5655
image_name: fnproject/node:8
5756
timeout: '500'
58-
analysis_fail: True
57+
policy_failure: true
58+
- anchore/parse_reports
5959

60+
"node10_security_check":
61+
executor: anchore/anchore_engine
62+
working_directory: ~/go/src/github.com/fnproject/fdk-node
63+
steps:
64+
- checkout
6065
- run:
6166
name: Node.JS 10 build
6267
command: |
6368
./build-images.sh 10
6469
- anchore/analyze_local_image:
6570
image_name: fnproject/node:10-dev
6671
timeout: '500'
67-
analysis_fail: True
72+
policy_failure: true
6873
- anchore/analyze_local_image:
6974
image_name: fnproject/node:10
7075
timeout: '500'
71-
analysis_fail: True
76+
policy_failure: true
77+
- anchore/parse_reports
7278

79+
"node11_security_check":
80+
executor: anchore/anchore_engine
81+
working_directory: ~/go/src/github.com/fnproject/fdk-node
82+
steps:
83+
- checkout
7384
- run:
7485
name: Node.JS 11 build
7586
command: |
7687
./build-images.sh 11
7788
- anchore/analyze_local_image:
7889
image_name: fnproject/node:11-dev
7990
timeout: '500'
80-
analysis_fail: True
91+
policy_failure: true
8192
- anchore/analyze_local_image:
8293
image_name: fnproject/node:11
8394
timeout: '500'
84-
analysis_fail: True
95+
policy_failure: true
96+
- anchore/parse_reports
97+
98+
workflows:
99+
version: 2
100+
build:
101+
jobs:
102+
- "fdk"
103+
- "node8_security_check"
104+
- "node10_security_check"
105+
- "node11_security_check"

0 commit comments

Comments
 (0)