release: v2

This commit is contained in:
2024-03-19 01:03:14 +08:00
parent 06ed1f232d
commit 13fd643c7a
24 changed files with 2285 additions and 527 deletions

View File

@@ -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