-
-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
56 lines (43 loc) · 1.16 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
PRODUCT_VERSION := v1.21.6
default: build-local
build-local: export CGO_ENABLED=0
build-local: export SOURCE_DATE_EPOCH=1
build-local: frontend generate-apidocs
go build \
-buildvcs=false \
-ldflags "-s -w -buildid= -X main.version=$(PRODUCT_VERSION)" \
-mod=readonly \
-trimpath \
-o ots
ci/translate/translate:
cd ci/translate && go build
generate-apidocs: node_modules
pnpm redocly \
--disableGoogleFont true \
-o frontend/api.html \
build-docs docs/openapi.yaml
frontend_prod: export NODE_ENV=production
frontend_prod: frontend
frontend: node_modules
pnpm node ci/build.mjs
frontend_lint: node_modules
pnpm eslint --fix src
node_modules:
pnpm install --production=false --frozen-lockfile
publish: export NODE_ENV=production
publish: frontend_prod generate-apidocs
bash ./ci/build.sh
translate: ci/translate/translate
ci/translate/translate --write-issue-file
# -- Vulnerability scanning --
trivy:
trivy fs . \
--dependency-tree \
--exit-code 1 \
--format table \
--ignore-unfixed \
--quiet \
--scanners config,license,secret,vuln \
--severity HIGH,CRITICAL \
--skip-dirs docs,node_modules
.PHONY: ci/translate/translate node_modules