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
build-releaser: ## - Build a Docker image to run make package including all build tools
322
319
ifeq ($(shell uname -p),arm)
323
320
$(eval SUFFIX := ${CROSSBUILD_ARM_SUFFIX})
321
+
else ifeq ($(shell uname -p),aarch64)
322
+
$(eval SUFFIX := ${CROSSBUILD_ARM_SUFFIX})
324
323
else
325
324
$(eval SUFFIX := ${CROSSBUILD_SUFFIX})
326
325
endif
@@ -332,16 +331,16 @@ endif
332
331
333
332
.PHONY: docker-release
334
333
docker-release: build-releaser ## - Builds a release for all platforms in a dockerised environment
335
-
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --volume $(PWD):/go/src/github.com/elastic/fleet-server $(BUILDER_IMAGE) release
334
+
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --env='PLATFORMS=${PLATFORMS}' --volume $(PWD):/go/src/github.com/elastic/fleet-server $(BUILDER_IMAGE) release
336
335
337
336
.PHONY: docker-cover-e2e-binaries
338
337
docker-cover-e2e-binaries: build-releaser
339
338
ifeq "${FIPS}" "true"
340
339
## non-linux is currently unsupported for FIPS
341
-
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true -e DEV=$(DEV) -e FIPS=$(FIPS) $(BUILDER_IMAGE) cover-linux/$(shell go env GOARCH)
340
+
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --env='PLATFORMS=${PLATFORMS}' --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true -e DEV=$(DEV) -e FIPS=$(FIPS) $(BUILDER_IMAGE) cover-linux/$(shell go env GOARCH)
342
341
else
343
342
## Build for local architecture and for linux/$ARCH for docker images.
344
-
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true -e DEV=$(DEV) -e FIPS=$(FIPS) $(BUILDER_IMAGE) cover-linux/$(shell go env GOARCH) cover-$(shell go env GOOS)/$(shell go env GOARCH)
343
+
docker run --rm -u $(shell id -u):$(shell id -g) --env=GOCACHE=/go/cache --env='PLATFORMS=${PLATFORMS}' --volume $(PWD):/go/src/github.com/elastic/fleet-server -e SNAPSHOT=true -e DEV=$(DEV) -e FIPS=$(FIPS) $(BUILDER_IMAGE) cover-linux/$(shell go env GOARCH) cover-$(shell go env GOOS)/$(shell go env GOARCH)
0 commit comments