build: fix S5CMD_ARCH calculation
In image building, when building on arm based systems,
the s5cmd tool was added with the wrong architecture
(amd64 instead of arm64).
This change fixes the architecture of the s5cmd to match the
architecture of the image built.
Fixes: #15262
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e34c41ce2c)
This commit is contained in:
1 parent
b2d3d2c15c
commit
3ee87dcc3a
1 file changed
+5
@@ -35,7 +35,12 @@ ifeq ($(BUILD_CONTEXT_DIR),)
|
||||
BUILD_CONTEXT_DIR := $(shell mktemp -d)
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(GOARCH),amd64)
|
||||
S5CMD_ARCH = Linux-64bit
|
||||
else
|
||||
S5CMD_ARCH = Linux-arm64
|
||||
endif
|
||||
|
||||
# s5cmd's version
|
||||
S5CMD_VERSION = 2.3.0
|
||||
|
||||
Reference in new issue
Block a user