Skip to content

Instantly share code, notes, and snippets.

@marioarizaj
Created January 18, 2021 16:40
Show Gist options
  • Save marioarizaj/9eb445a5166d34833c42b00e7ec60a35 to your computer and use it in GitHub Desktop.
Save marioarizaj/9eb445a5166d34833c42b00e7ec60a35 to your computer and use it in GitHub Desktop.
.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