Debug: wtf
Some checks failed
Go test / run-go-test (push) Failing after 20s
Go test / release-image (push) Has been skipped
Go test / run-go-vet (push) Successful in 5s
Go test / check-swagger-up-to-date (push) Successful in 10s
Go test / cleanup-go-test (push) Successful in 3s

This commit is contained in:
2025-12-13 02:17:46 +08:00
parent e6c46f29f5
commit 2a2c18be8c
3 changed files with 15 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
SWAG ?= go run github.com/swaggo/swag/cmd/swag@v1.16.4
DOCKER ?= docker
DOCKER_BUILD_ARGS +=
COMPOSE_ARGS += --progress plain
COMPOSE ?= $(DOCKER) compose $(COMPOSE_ARGS)
@@ -22,12 +23,14 @@ swagger:
$(SWAG) init -o docs -g cmds/serve.go -pdl 1
docker-build-native: $(TARGET)
$(DOCKER) build . --target native \
$(DOCKER) build . $(DOCKER_BUILD_ARGS) \
--target native \
-t go2025/backend:native \
-t go2025/backend:latest
docker-build-run:
$(DOCKER) build . --target build-run \
$(DOCKER) build . $(DOCKER_BUILD_ARGS) \
--target build-run \
-t go2025/backend:build-run \
-t go2025/backend:latest