This repository has been archived by the owner on Nov 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
66 lines (51 loc) · 1.52 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
## ======
## Docker
## ======
builder-grpc-golang:
docker build docker/builder-grpc-golang/ -t depscloud/builder-grpc-golang
builder-grpc-nodejs:
docker build docker/builder-grpc-nodejs/ -t depscloud/builder-grpc-nodejs
builder-grpc-python:
docker build docker/builder-grpc-python/ -t depscloud/builder-grpc-python
builder: builder-grpc-golang builder-grpc-nodejs builder-grpc-python
## ===================
## Compilation Targets
## ===================
compile-golang:
docker run --rm -it \
-v $(PWD):/go/src/github.com/depscloud/api \
-w /go/src/github.com/depscloud/api \
depscloud/builder-grpc-golang \
bash scripts/compile-files.sh compile-golang
compile-dts:
bash scripts/compile-files.sh compile-dts
compile-nodejs:
docker run --rm -it \
-v $(PWD):/depscloud/api \
-w /depscloud/api \
depscloud/builder-grpc-nodejs \
bash scripts/compile-nodejs.sh
cp LICENSE packages/depscloud-api-nodejs
compile-python:
# compile src
docker run --rm -it \
-v $(PWD):/depscloud/api \
-w /depscloud/api \
depscloud/builder-grpc-python \
bash scripts/compile-files.sh compile-python
compile-swagger:
docker run --rm -it \
-v $(PWD):/depscloud/api \
-w /depscloud/api \
depscloud/builder-grpc-golang \
bash scripts/compile-swagger.sh
compile: compile-golang compile-nodejs compile-python compile-swagger
## ==================
## Versioning Helpers
## ==================
version-patch:
bash scripts/version.sh patch
version-minor:
bash scripts/version.sh minor
version-major:
bash scripts/version.sh major