-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
56 lines (38 loc) · 1.38 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
.SILENT:
help:
{ grep --extended-regexp '^[a-zA-Z0-9._-]+:.*#[[:space:]].*$$' $(MAKEFILE_LIST) || true; } \
| awk 'BEGIN { FS = ":.*#[[:space:]]*" } { printf "\033[1;32m%-17s\033[0m%s\n", $$1, $$2 }'
setup: # npm install + terraform init + create ecr repository
./make.sh setup
dev: # local development
./make.sh dev
local-1.0.0: # local 1.0.0 version — blue parrot
./make.sh local-1.0.0
local-1.1.0: # local 1.1.0 version — green parrot
./make.sh local-1.1.0
local-1.2.0: # local 1.2.0 version — red parrot
./make.sh local-1.2.0
build-all: # build all 1.x.0 versions
./make.sh build-all
push-all: # push all 1.x.0 versions to ecr
./make.sh push-all
tf-validate: # terraform validate
./make.sh tf-validate
tf-apply: # terraform plan + terraform apply
./make.sh tf-apply
kube-config: # setup kubectl config
./make.sh kube-config
k8s-1.0.0: # publish the 1.0.0 version
./make.sh k8s-1.0.0
k8s-1.1.0-green: # publish the 1.1.0 version as green
./make.sh k8s-1.1.0-green
k8s-1.1.0: # target the 1.1.0 version — new blue
./make.sh k8s-1.1.0
k8s-delete-1.0.0: # delete previous blue deployment + green service
./make.sh k8s-delete-1.0.0
k8s-1.2.0-green: # publish the 1.2.0 version as green
./make.sh k8s-1.2.0-green
k8s-1.2.0: # target the 1.2.0 version — new blue
./make.sh k8s-1.2.0
destroy: # delete eks content + terraform destroy + delete ecr repository
./make.sh destroy