@@ -27,32 +27,32 @@ ENVVARS = -e VERSION=$(VERSION) -e GITCOMMIT -e PLATFORM -e TESTFLAGS -e TESTDIR
2727.PHONY : build_docker_image
2828build_docker_image :
2929 # build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
30- cat ./dockerfiles/Dockerfile.dev | docker build ${DOCKER_BUILD_ARGS} -t $(DEV_DOCKER_IMAGE_NAME ) -
30+ cat ./dockerfiles/Dockerfile.dev | docker build ${DOCKER_BUILD_ARGS} --build-arg=GO_VERSION - t $(DEV_DOCKER_IMAGE_NAME ) -
3131
3232# build docker image having the linting tools (dockerfiles/Dockerfile.lint)
3333.PHONY : build_linter_image
3434build_linter_image :
3535 # build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
36- cat ./dockerfiles/Dockerfile.lint | docker build ${DOCKER_BUILD_ARGS} -t $(LINTER_IMAGE_NAME ) -
36+ cat ./dockerfiles/Dockerfile.lint | docker build ${DOCKER_BUILD_ARGS} --build-arg=GO_VERSION - t $(LINTER_IMAGE_NAME ) -
3737
3838.PHONY : build_cross_image
3939build_cross_image :
4040 # build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
41- cat ./dockerfiles/Dockerfile.cross | docker build ${DOCKER_BUILD_ARGS} -t $(CROSS_IMAGE_NAME ) -
41+ cat ./dockerfiles/Dockerfile.cross | docker build ${DOCKER_BUILD_ARGS} --build-arg=GO_VERSION - t $(CROSS_IMAGE_NAME ) -
4242
4343.PHONY : build_shell_validate_image
4444build_shell_validate_image :
4545 # build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
46- cat ./dockerfiles/Dockerfile.shellcheck | docker build -t $(VALIDATE_IMAGE_NAME ) -
46+ cat ./dockerfiles/Dockerfile.shellcheck | docker build --build-arg=GO_VERSION - t $(VALIDATE_IMAGE_NAME ) -
4747
4848.PHONY : build_binary_native_image
4949build_binary_native_image :
5050 # build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
51- cat ./dockerfiles/Dockerfile.binary-native | docker build -t $(BINARY_NATIVE_IMAGE_NAME ) -
51+ cat ./dockerfiles/Dockerfile.binary-native | docker build --build-arg=GO_VERSION - t $(BINARY_NATIVE_IMAGE_NAME ) -
5252
5353.PHONY : build_e2e_image
5454build_e2e_image :
55- docker build -t $(E2E_IMAGE_NAME ) --build-arg VERSION=$(VERSION ) --build-arg GITCOMMIT=$(GITCOMMIT ) -f ./dockerfiles/Dockerfile.e2e .
55+ docker build -t $(E2E_IMAGE_NAME ) --build-arg=GO_VERSION --build-arg VERSION=$(VERSION ) --build-arg GITCOMMIT=$(GITCOMMIT ) -f ./dockerfiles/Dockerfile.e2e .
5656
5757DOCKER_RUN_NAME_OPTION := $(if $(DOCKER_CLI_CONTAINER_NAME ) ,--name $(DOCKER_CLI_CONTAINER_NAME ) ,)
5858DOCKER_RUN := docker run --rm $(ENVVARS ) $(DOCKER_CLI_MOUNTS ) $(DOCKER_RUN_NAME_OPTION )
0 commit comments