-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (21 loc) · 619 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
SHELL=/bin/bash
test:
go test -v ./...
build:
go build -v ./...
format:
gofmt -w */*/*.go
clean:
if [ -f bootstrap ]; then rm bootstrap; fi
build-executable: clean
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -tags lambda.norpc -o bootstrap cmd/main/main.go
artifact: build-executable
zip RemindersFunction.zip bootstrap
cdk-synth: artifact
export REMINDERS_ENV=dev && cdk synth
cdk-bootstrap: artifact
export REMINDERS_ENV=dev && cdk bootstrap
cdk-deploy: cdk-bootstrap
export REMINDERS_ENV=dev && cdk deploy "RemindersAPIStack"
cdk-destroy: artifact
export REMINDERS_ENV=dev && cdk destroy