You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Makefile
+2-5
Original file line number
Diff line number
Diff line change
@@ -76,10 +76,6 @@ local: ## - Build local binary for local environment (bin/fleet-server)
76
76
go build $(if$(DEV),-tags="dev",) -gcflags="${GCFLAGS}" -ldflags="${LDFLAGS}" -o ./bin/fleet-server .
77
77
@printf "${CMD_COLOR_ON} Binaries in ./bin/\n${CMD_COLOR_OFF}"
78
78
79
-
.PHONY: cover-e2e-binaries
80
-
cover-e2e-binaries: ## - Build binaries for the test-e2e target with the go 1.20+ cover flag
81
-
SNAPSHOT=true $(MAKE)$(COVER_TARGETS)
82
-
83
79
.PHONY: $(COVER_TARGETS)
84
80
$(COVER_TARGETS): cover-%: ## - Build a binary with the -cover flag for integration testing
85
81
@mkdir -p build/cover
@@ -239,7 +235,8 @@ docker-release: build-releaser ## - Builds a release for all platforms in a dock
239
235
240
236
.PHONY: docker-cover-e2e-binaries
241
237
docker-cover-e2e-binaries: build-releaser
242
-
docker run --rm -u $(shell id -u):$(shell id -g) --volume $(PWD):/go/src/github.com/elastic/fleet-server $(BUILDER_IMAGE) cover-e2e-binaries
238
+
## Build for local architecture and for linux/amd64 for docker images.
239
+
docker run --rm -u $(shell id -u):$(shell id -g) --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true $(BUILDER_IMAGE) cover-linux/amd64 cover-$(shell go env GOOS)/$(shell go env GOARCH)
243
240
244
241
.PHONY: release
245
242
release: $(PLATFORM_TARGETS)## - Builds a release. Specify exact platform with PLATFORMS env.
0 commit comments