We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e3c5f8 commit c3fbe97Copy full SHA for c3fbe97
1 file changed
Makefile
@@ -8,6 +8,7 @@ DEV_ENV_IMAGE := drycc/go-dev
8
DEV_ENV_WORK_DIR := /go/src/${REPO_PATH}
9
DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
10
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}
11
+PLATFORM ?= linux/amd64,linux/arm64
12
13
# SemVer with build information is defined in the SemVer 2 spec, but Docker
14
# doesn't allow +, so we use -.
@@ -46,6 +47,9 @@ docker-build: build
46
47
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
48
docker tag ${IMAGE} ${MUTABLE_IMAGE}
49
50
+docker-buildx:
51
+ docker buildx build --platform ${PLATFORM} -t ${IMAGE} rootfs --push
52
+
53
check-kubectl:
54
@if [ -z $$(which kubectl) ]; then \
55
echo "kubectl binary could not be located"; \
0 commit comments