release: v2
This commit is contained in:
27
Makefile
27
Makefile
@@ -1,11 +1,26 @@
|
||||
all:
|
||||
cd webui && npm install && npm run build
|
||||
go mod tidy && go build .
|
||||
./pastebin api
|
||||
.PHONY : clean all ui api gen wire docker
|
||||
gen:
|
||||
ifeq ($(wildcard "webui/node_modules"),)
|
||||
buf generate
|
||||
else
|
||||
buf generate --exclude-path webui/node_modules
|
||||
endif
|
||||
|
||||
wire:
|
||||
go mod tidy
|
||||
cd gen/wire && wire
|
||||
|
||||
ui:
|
||||
cd webui && npm run build
|
||||
cd webui && npm install && npm run build
|
||||
|
||||
api:
|
||||
go build .
|
||||
go mod tidy && go build .
|
||||
|
||||
build: gen wire ui api
|
||||
|
||||
run: gen wire ui api
|
||||
./pastebin api
|
||||
|
||||
docker:
|
||||
podman build -t images.internal/pastebin:latest .
|
||||
podman push images.internal/pastebin:latest
|
||||
|
||||
Reference in New Issue
Block a user