@@ -25,8 +25,8 @@ ifndef PUBLISH
2525override IMAGE_VERSION := e2e-$(GIT_COMMIT )
2626endif
2727endif
28- IMAGE_TAG ?= $(REGISTRY ) /$(IMAGE_NAME ) :$(IMAGE_VERSION )
29- IMAGE_TAG_LATEST = $(REGISTRY ) /$(IMAGE_NAME ) :latest
28+ CSI_IMAGE_TAG ?= $(REGISTRY ) /$(IMAGE_NAME ) :$(IMAGE_VERSION )
29+ CSI_IMAGE_TAG_LATEST = $(REGISTRY ) /$(IMAGE_NAME ) :latest
3030BUILD_DATE ?= $(shell date -u +"% Y-% m-% dT% H:% M:% SZ")
3131LDFLAGS ?= "-X ${PKG}/pkg/blob.driverVersion=${IMAGE_VERSION} -X ${PKG}/pkg/blob.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/blob.buildDate=${BUILD_DATE} -s -w -extldflags '-static'"
3232E2E_HELM_OPTIONS ?= --set image.blob.pullPolicy=Always --set image.blob.repository=$(REGISTRY ) /$(IMAGE_NAME ) --set image.blob.tag=$(IMAGE_VERSION ) --set driver.userAgentSuffix="e2e-test"
@@ -86,7 +86,7 @@ e2e-test:
8686.PHONY : e2e-bootstrap
8787e2e-bootstrap : install-helm
8888 # Only build and push the image if it does not exist in the registry
89- docker pull $(IMAGE_TAG ) || make blob-container push
89+ docker pull $(CSI_IMAGE_TAG ) || make blob-container push
9090 helm install blob-csi-driver ./charts/latest/blob-csi-driver --namespace kube-system --wait --timeout=15m -v=5 --debug \
9191 --set controller.replicas=1 \
9292 --set cloud=$(CLOUD ) \
@@ -114,13 +114,13 @@ blob-darwin:
114114
115115.PHONY : container
116116container : blob
117- docker build -t $(IMAGE_TAG ) --output=type=docker -f ./pkg/blobplugin/Dockerfile .
117+ docker build -t $(CSI_IMAGE_TAG ) --output=type=docker -f ./pkg/blobplugin/Dockerfile .
118118
119119.PHONY : container-linux
120120container-linux :
121121 docker buildx build --pull --output=type=$(OUTPUT_TYPE ) --platform=" linux/$( ARCH) " \
122122 --provenance=false --sbom=false \
123- -t $(IMAGE_TAG ) -linux-$(ARCH ) --build-arg ARCH=$(ARCH ) -f ./pkg/blobplugin/Dockerfile .
123+ -t $(CSI_IMAGE_TAG ) -linux-$(ARCH ) --build-arg ARCH=$(ARCH ) -f ./pkg/blobplugin/Dockerfile .
124124
125125.PHONY : blob-container
126126blob-container :
@@ -142,27 +142,27 @@ endif
142142.PHONY : push
143143push :
144144ifdef CI
145- docker manifest create --amend $(IMAGE_TAG ) $(foreach osarch, $(ALL_OS_ARCH), $(IMAGE_TAG )-${osarch})
146- docker manifest push --purge $(IMAGE_TAG )
147- docker manifest inspect $(IMAGE_TAG )
145+ docker manifest create --amend $(CSI_IMAGE_TAG ) $(foreach osarch, $(ALL_OS_ARCH), $(CSI_IMAGE_TAG )-${osarch})
146+ docker manifest push --purge $(CSI_IMAGE_TAG )
147+ docker manifest inspect $(CSI_IMAGE_TAG )
148148else
149- docker push $(IMAGE_TAG )
149+ docker push $(CSI_IMAGE_TAG )
150150endif
151151
152152.PHONY : push-latest
153153push-latest :
154154ifdef CI
155- docker manifest create --amend $(IMAGE_TAG_LATEST ) $(foreach osarch, $(ALL_OS_ARCH), $(IMAGE_TAG )-${osarch})
156- docker manifest push --purge $(IMAGE_TAG_LATEST )
157- docker manifest inspect $(IMAGE_TAG_LATEST )
155+ docker manifest create --amend $(CSI_IMAGE_TAG_LATEST ) $(foreach osarch, $(ALL_OS_ARCH), $(CSI_IMAGE_TAG )-${osarch})
156+ docker manifest push --purge $(CSI_IMAGE_TAG_LATEST )
157+ docker manifest inspect $(CSI_IMAGE_TAG_LATEST )
158158else
159- docker push $(IMAGE_TAG_LATEST )
159+ docker push $(CSI_IMAGE_TAG_LATEST )
160160endif
161161
162162.PHONY : build-push
163163build-push : blob-container
164- docker tag $(IMAGE_TAG ) $(IMAGE_TAG_LATEST )
165- docker push $(IMAGE_TAG_LATEST )
164+ docker tag $(CSI_IMAGE_TAG ) $(CSI_IMAGE_TAG_LATEST )
165+ docker push $(CSI_IMAGE_TAG_LATEST )
166166
167167.PHONY : clean
168168clean :
0 commit comments