forked from aquasecurity/trivy-azure-pipelines-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 820 Bytes
/
Makefile
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
default: build
.PHONY: clean
clean:
rm *.vsix || true
rm trivy-task/index.js || true
.PHONY: lint
lint:
cd ui && npm install -f && npm run lint
cd trivy-task && npm install -f && npm run lint
.PHONY: build-ui
build-ui: clean
cd ui && npm install -f && npm run build
.PHONY: build-task
build-task: clean
cd trivy-task && npm install -f && npm run build
.PHONY: build
build: clean build-task build-ui
.PHONY: package
package: build
tfx extension create --manifest-globs vss-extension.json
.PHONY: package-dev
package-dev: build
tfx extension create --manifest-globs vss-extension.dev.json
.PHONY: local
local: build-task
cd trivy-task && INPUT_VERSION=v0.29.2 INPUT_PATH=. node index.js
.PHONY: local-image
local-image: build-task
cd trivy-task && INPUT_VERSION=v0.29.2 INPUT_IMAGE=ubuntu node index.js