Skip to content

Commit a919ad5

Browse files
committed
build: set --load as BUILD_ARGS default
Otherwise overwriting it with e.g. `--push` is not possible as the combination with `--load` results in an error. Signed-off-by: Hidde Beydals <hello@hidde.co>
1 parent 6311fba commit a919ad5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GOBIN=$(shell go env GOBIN)
1111
endif
1212

1313
# Allows for defining additional Docker buildx arguments, e.g. '--push'.
14-
BUILD_ARGS ?=
14+
BUILD_ARGS ?= --load
1515
# Architectures to build images for.
1616
BUILD_PLATFORMS ?= linux/amd64
1717

@@ -94,7 +94,6 @@ docker-build:
9494
docker buildx build \
9595
--platform=$(BUILD_PLATFORMS) \
9696
-t ${IMG} \
97-
--load \
9897
${BUILD_ARGS} .
9998

10099
# Push the docker image

0 commit comments

Comments
 (0)