-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (30 loc) · 861 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
39
40
41
42
43
44
45
46
RUNTIMES = nodejs12.x nodejs10.x nodejs8.10 python3.8 python3.7 python3.6 ruby2.5 provided java11
define BUILD_RUNTIME
build-$(runtime):
docker build runtime/$(runtime) -t lambdev/runtime:$(runtime)
push-$(runtime):
docker push lambdev/runtime:$(runtime)
build-all += build-$(runtime)
push-all += push-$(runtime)
endef
$(foreach runtime,$(RUNTIMES), \
$(eval $(BUILD_RUNTIME)) \
)
build-service:
docker build packages/service -t lambdev/service:latest
build-service-ci:
docker build . -f packages/service/ci.Dockerfile -t lambdev/service:latest
push-service:
docker push lambdev/service:latest
build-all: $(build-all)
push-all: $(push-all)
install:
yarn
yarn lerna bootstrap
test: install
yarn test
credentials:
curl -s 169.254.170.2$(AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)
build: build-service-ci test
publish:
yarn lerna publish