Feat: finish putImageAliases

This commit is contained in:
2025-12-07 20:34:53 +08:00
parent cada4d25fa
commit b609421a6e
15 changed files with 242 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
.PHONY: all swagger docker install test bench
.PHONY: all swagger docker install test
SWAG ?= go run github.com/swaggo/swag/cmd/swag@v1.16.4
DOCKER ?= docker
GO_ENV += CGO_ENABLED=0
SOURCE := $(shell find . -type f -name '*.go')
@@ -9,7 +10,7 @@ TARGET := backend
all: swagger docker
docker: $(TARGET)
docker compose up -d --force-recreate --build backend
$(DOCKER) compose up -d --force-recreate --build backend
install:
$(GO_ENV) go install
@@ -17,6 +18,10 @@ install:
test:
go test -v ./tests -count=1
postgres:
$(DOCKER) compose exec postgres psql \
postgres://go2025:go2025@postgres:5432/go2025?sslmode=disable
swagger:
$(SWAG) fmt
$(SWAG) init -o docs -g cmds/serve.go -pdl 1