mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
ci: install arch specific go in Dockerfile.test
Instead of installing the amd64 on all the platforms, install architecture specific go version in test dockerfile. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
8a3fe53e87
commit
e743e06748
3
Makefile
3
Makefile
@ -212,10 +212,11 @@ else
|
||||
endif
|
||||
|
||||
ifeq ($(USE_PULLED_IMAGE),no)
|
||||
.test-container-id: GOARCH ?= $(shell go env GOARCH 2>/dev/null)
|
||||
# create a (cached) container image with dependencies for testing cephcsi
|
||||
.test-container-id: .container-cmd build.env scripts/Dockerfile.test
|
||||
[ ! -f .test-container-id ] || $(CONTAINER_CMD) rmi $(CSI_IMAGE_NAME):test
|
||||
$(CONTAINER_CMD) build $(CPUSET) -t $(CSI_IMAGE_NAME):test -f ./scripts/Dockerfile.test .
|
||||
$(CONTAINER_CMD) build $(CPUSET) --build-arg GOARCH=$(GOARCH) -t $(CSI_IMAGE_NAME):test -f ./scripts/Dockerfile.test .
|
||||
$(CONTAINER_CMD) inspect -f '{{.Id}}' $(CSI_IMAGE_NAME):test > .test-container-id
|
||||
else
|
||||
# create the .test-container-id file based on the pulled image
|
||||
|
Reference in New Issue
Block a user