diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index c40681d..be2cb4e 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -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 diff --git a/Makefile b/Makefile index f29eece..8e6788b 100644 --- a/Makefile +++ b/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 $@