mirror of
https://github.com/ceph/go-ceph
synced 2025-01-30 10:06:32 +00:00
makefile: pass GOARCH as container's build arg
Pass GOARCH as explicit argument when building container image. Use local host machine to define desired architecture. Signed-off-by: Shachar Sharon <ssharon@redhat.com>
This commit is contained in:
parent
3c45e67b6e
commit
4543bdda46
2
Makefile
2
Makefile
@ -53,6 +53,7 @@ endif
|
||||
|
||||
GO_CMD:=go
|
||||
GOFMT_CMD:=gofmt
|
||||
GOARCH:=$(shell $(GO_CMD) env GOARCH)
|
||||
|
||||
# the full name of the marker file including the ceph version
|
||||
BUILDFILE=.build.$(CEPH_VERSION)
|
||||
@ -98,6 +99,7 @@ endif
|
||||
|
||||
# Assemble the various build args that will be passed container build command(s)
|
||||
CONTAINER_BUILD_ARGS:=$(DEFAULT_BUILD_ARGS)
|
||||
CONTAINER_BUILD_ARGS += --build-arg GOARCH=$(GOARCH)
|
||||
ifdef CEPH_IMG
|
||||
CONTAINER_BUILD_ARGS += --build-arg CEPH_IMG=$(CEPH_IMG)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user