Skip to content

Commit cb7ff49

Browse files
authored
Merge pull request #989 from elezar/improve-multiarch
[no-relnote] Allow ARCH to be specified for single image
2 parents 966d5b8 + 104cffb commit cb7ff49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deployments/container/native-only.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
# limitations under the License.
1414

1515
PUSH_ON_BUILD ?= false
16-
DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
16+
ARCH ?= $(shell uname -m)
17+
DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/$(ARCH)
1718

1819
ifeq ($(PUSH_ON_BUILD),true)
1920
$(BUILD_TARGETS): build-%: image-%

0 commit comments

Comments
 (0)