-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (38 loc) · 1.02 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
# this should be sufficient to test everything on the machine
.PHONY: integration-test
integration-test:
earthly -i --allow-privileged +integration-test
.PHONY: push
push:
earthly --push +multi-build --IMAGE_NAME=$(IMAGE_NAME)
.PHONY: diff
diff:
earthly -i --allow-privileged +diff
.PHONY: deploy
.ONESHELL:
deploy:
@export EARTHLY_BUILD_ARGS="ROLLBAR_TOKEN=$(ROLLBAR_TOKEN)"
earthly -i --allow-privileged +deploy
.PHONY: deploy-via-registry
.ONESHELL:
deploy-via-registry: push
@export EARTHLY_BUILD_ARGS="ROLLBAR_TOKEN=$(ROLLBAR_TOKEN),IMAGE_NAME=$(IMAGE_NAME)"
earthly -i --allow-privileged +deploy
.PHONY: destroy
destroy:
earthly --allow-privileged +destroy
.PHONY: clean-deploy
clean-deploy: destroy deploy
## everything below here are helper commands for debugging
.PHONY: install-requirement-on-local
install-requirement-on-local:
pip install -r requirements.txt
.PHONY: cdk
cdk:
earthly -i +cdk
.PHONY: dev
dev:
earthly -i +dev
.PHONY: debug-gen-docker-files
debug-gen-docker-files:
earthly -i +eb-container-def