Skip to content

Instantly share code, notes, and snippets.

@alsmola
Last active March 6, 2021 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alsmola/c46dd1e0a74276328e0a3597f10f18da to your computer and use it in GitHub Desktop.
Save alsmola/c46dd1e0a74276328e0a3597f10f18da to your computer and use it in GitHub Desktop.
Template for Makefile for Serverless Slack Block Kit application
.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