-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 936 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 936 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
URL=https://api.github.com/repos/eexit/http2smtp/releases/latest
.DEFAULT: usage
usage:
@echo '+-------------------------------------------------------------------+'
@echo '| Make Usage |'
@echo '+-------------------------------------------------------------------+'
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "|- \033[33m%-15s\033[0m -> %s\n", $$1, $$2}'
install-sls: ## Installs serverless (via NPM)
npm install -g serverless --ignore-scripts --loglevel error
config: ## Prints the resolved stack config
sls print --verbose
download: ## Gets the latest version of the binary
curl -sL $(URL) | jq -r '.assets[].browser_download_url' | grep lambda | grep -v md5 | xargs wget -qO- | tar xvz http2smtp-lambda
deploy: ## Deploys the stack
sls deploy --verbose
remove: ## Removes the stack
sls remove --verbose