Skip to content

Commit d8cc065

Browse files
authored
Merge pull request #463 from andyzhangx/fix-canary-build
chore: fix canary-csi-driver-smb-push-images build failure
2 parents 71e6fab + c4aeb53 commit d8cc065

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@
1313
# limitations under the License.
1414

1515
PKG = github.com/kubernetes-csi/csi-driver-smb
16+
GINKGO_FLAGS = -ginkgo.v
17+
GO111MODULE = on
18+
GOPATH ?= $(shell go env GOPATH)
19+
GOBIN ?= $(GOPATH)/bin
20+
DOCKER_CLI_EXPERIMENTAL = enabled
21+
IMAGE_NAME ?= smb-csi
22+
export GOPATH GOBIN GO111MODULE DOCKER_CLI_EXPERIMENTAL
23+
24+
include release-tools/build.make
25+
1626
GIT_COMMIT ?= $(shell git rev-parse HEAD)
1727
REGISTRY ?= andyzhangx
1828
REGISTRY_NAME = $(shell echo $(REGISTRY) | sed "s/.azurecr.io//g")
19-
IMAGE_NAME ?= smb-csi
2029
IMAGE_VERSION ?= v1.7.0
2130
VERSION ?= latest
2231
# Use a custom version for E2E tests if we are testing in CI
@@ -31,15 +40,6 @@ BUILD_DATE ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
3140
LDFLAGS ?= "-X ${PKG}/pkg/smb.driverVersion=${IMAGE_VERSION} -X ${PKG}/pkg/smb.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/smb.buildDate=${BUILD_DATE} -s -w -extldflags '-static'"
3241
E2E_HELM_OPTIONS ?= --set image.smb.repository=$(REGISTRY)/$(IMAGE_NAME) --set image.smb.tag=$(IMAGE_VERSION) --set controller.dnsPolicy=ClusterFirstWithHostNet --set linux.dnsPolicy=ClusterFirstWithHostNet
3342
E2E_HELM_OPTIONS += ${EXTRA_HELM_OPTIONS}
34-
GINKGO_FLAGS = -ginkgo.v
35-
GO111MODULE = on
36-
GOPATH ?= $(shell go env GOPATH)
37-
GOBIN ?= $(GOPATH)/bin
38-
DOCKER_CLI_EXPERIMENTAL = enabled
39-
export GOPATH GOBIN GO111MODULE DOCKER_CLI_EXPERIMENTAL
40-
41-
include release-tools/build.make
42-
4343
# Generate all combination of all OS, ARCH, and OSVERSIONS for iteration
4444
ALL_OS = linux windows
4545
ALL_ARCH.linux = arm64 amd64 ppc64le

0 commit comments

Comments
 (0)