-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (29 loc) · 844 Bytes
/
Makefile
File metadata and controls
33 lines (29 loc) · 844 Bytes
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
lantern-server-manager:
CGO_ENABLED=1 go build -o lantern-server-manager ./cmd/...
packer:
@if [ -z "$(PKR_VAR_aws_secret_key)" ]; then \
echo "Error: PKR_VAR_aws_secret_key is not set"; \
exit 1; \
fi
@if [ -z "$(PKR_VAR_aws_access_key)" ]; then \
echo "Error: PKR_VAR_aws_access_key is not set"; \
exit 1; \
fi
@if [ -z "$(PKR_VAR_do_api_token)" ]; then \
echo "Error: PKR_VAR_do_api_token is not set"; \
exit 1; \
fi
@if [ -z "$(PKR_VAR_gcp_project_id)" ]; then \
echo "Error: PKR_VAR_gcp_project_id is not set"; \
exit 1; \
fi
@if [ -z "$(PKR_VAR_gcp_zone)" ]; then \
echo "Error: PKR_VAR_gcp_zone is not set"; \
exit 1; \
fi
# Make sure you have packer installed
@if ! command -v packer &> /dev/null; then \
echo "Error: packer is not installed"; \
exit 1; \
fi
cd cloud/packer && packer build .