Created
January 18, 2021 16:40
-
-
Save marioarizaj/9eb445a5166d34833c42b00e7ec60a35 to your computer and use it in GitHub Desktop.
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: | |
go get ./... | |
go mod vendor | |
env GOOS=linux go build -ldflags="-s -w" -o bin/create_article api/create_article/main.go | |
env GOOS=linux go build -ldflags="-s -w" -o bin/create_author api/create_author/main.go | |
env GOOS=linux go build -ldflags="-s -w" -o bin/get_authors api/get_authors/main.go | |
env GOOS=linux go build -ldflags="-s -w" -o bin/get_articles api/get_articles/main.go | |
clean: | |
rm -rf ./bin ./vendor | |
deploy: clean build | |
sls deploy --verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment