Last active
March 6, 2021 21:58
-
-
Save alsmola/c46dd1e0a74276328e0a3597f10f18da to your computer and use it in GitHub Desktop.
Template for Makefile for Serverless Slack Block Kit application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: build clean deploy | |
build: | |
env GOOS=linux go build -ldflags="-s -w" -o bin/interactionsBin interactions/main.go | |
env GOOS=linux go build -ldflags="-s -w" -o bin/eventHandlerBin eventhandler/main.go | |
env GOOS=linux go build -ldflags="-s -w" -o bin/authCallbackBin authcallback/main.go | |
env GOOS=linux go build -ldflags="-s -w" -o bin/selectMenuBin selectmenu/main.go | |
clean: | |
rm -rf ./bin ./vendor Gopkg.lock | |
deploy-dev: clean build | |
sls deploy -s dev --verbose | |
deploy-prod: clean build | |
sls deploy -s production --verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment