-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (32 loc) · 687 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (32 loc) · 687 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
25
26
27
28
29
30
31
32
33
34
35
36
# Default target: print this help message
.PHONY: help
.DEFAULT_GOAL := help
help:
@echo 'Usage:'
@echo ' make <target>'
@echo ''
@echo 'Targets:'
@sed -n 's/^##//p' $(MAKEFILE_LIST) | column -t -s ':' | sed -e 's/^/ /'
## genkit: Run Genkit locally
.PHONY: genkit
genkit:
genkit start
## dev: Run http server locally
.PHONY: dev
dev:
go run main.go
## deploy: Deploy Cloud Run
.PHONY: deploy
deploy:
gcloud run deploy summarize-application \
--port 3400 \
--region=us-central1 \
--source=. \
--env-vars-file=.env.yaml \
--allow-unauthenticated
## tidy: Tidy modfiles, format and lint .go files
.PHONY: tidy
tidy:
go mod tidy -v
go fmt ./...
golangci-lint run