-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 771 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (29 loc) · 771 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
34
35
36
37
.PHONY: setup deploy destroy clean unlock api-keys upload
ENV ?= dev
# Infrastructure
setup:
go mod tidy
./infra/scripts/setup.sh $(ENV)
deploy:
./infra/scripts/deploy.sh $(ENV)
destroy:
./infra/scripts/destroy.sh $(ENV)
unlock:
./infra/scripts/unlock.sh $(ENV)
clean:
rm -rf builds/
rm -f cmd/*/main
rm -rf infra/.terraform/
rm -f infra/.terraform.lock.hcl
rm -f infra/tfplan
go mod tidy
# API Key Management - pass all args after "make api-keys"
# Usage: make api-keys ARGS="create 'My Key'"
# make api-keys ARGS="list"
# make api-keys ARGS="list -y -e prod"
api-keys:
@./scripts/api-keys.sh $n(ARGS)
# Upload - pass all args after "make upload"
# Usage: make upload ARGS="./doc.pdf -k abc123 -y"
upload:
@./scripts/upload.sh $(ARGS)