Fix: add project name in ci instead of Makefile
All checks were successful
Go test / run-go-vet (push) Successful in 5s
Go test / check-swagger-up-to-date (push) Successful in 10s
Go test / run-go-test (push) Successful in 25s
Go test / cleanup-go-test (push) Successful in 4s
Go test / release-image (push) Successful in 3m25s

This commit is contained in:
2025-12-12 02:31:28 +08:00
parent 1cf3a9ef0b
commit e537d83c19
2 changed files with 5 additions and 2 deletions

View File

@@ -33,6 +33,8 @@ jobs:
- run-go-vet
- check-swagger-up-to-date
runs-on: imgbuilder
env:
COMPOSE_ARGS: '-p go2025-backend'
steps:
- name: Checkout repository
uses: actions/checkout@v4

View File

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