Fix: add project name in ci instead of Makefile
Some checks failed
Some checks failed
This commit is contained in:
5
Makefile
5
Makefile
@@ -3,7 +3,8 @@
|
||||
|
||||
SWAG ?= go run github.com/swaggo/swag/cmd/swag@v1.16.4
|
||||
DOCKER ?= docker
|
||||
COMPOSE ?= $(DOCKER) compose -p go2025-backend --progress plain
|
||||
COMPOSE_ARGS += --progress plain
|
||||
COMPOSE ?= $(DOCKER) compose $(COMPOSE_ARGS)
|
||||
|
||||
GO_ENV += CGO_ENABLED=0
|
||||
SOURCE := $(shell find . -type f -name '*.go')
|
||||
@@ -16,7 +17,7 @@ swagger:
|
||||
$(SWAG) init -o docs -g cmds/serve.go -pdl 1
|
||||
|
||||
docker: $(TARGET)
|
||||
$(DOCKER) compose up -d --force-recreate --build backend
|
||||
$(COMPOSE) up -d --force-recreate --build backend
|
||||
|
||||
$(TARGET): $(SOURCE)
|
||||
$(GO_ENV) go build -o $@
|
||||
|
||||
Reference in New Issue
Block a user