Rollback build image go version to 1.9
Rollback build image go version to 1.9
modifying release-kanctl to run inside build image
@@ -61,13 +61,15 @@ IMAGE_NAME := $(BIN)
IMAGE := $(REGISTRY)/$(IMAGE_NAME)
-BUILD_IMAGE ?= kanisterio/build:0.13.1-go1.10
+BUILD_IMAGE ?= kanisterio/build:0.13.1-go1.9
DOCS_BUILD_IMAGE ?= kanisterio/docker-sphinx
DEFAULT_PATH := /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
DOCS_RELEASE_BUCKET ?= s3://docs.kanister.io
+GITHUB_TOKEN ?= ""
+
# If you want to build all binaries, see the 'all-build' rule.
# If you want to build all containers, see the 'all-container' rule.
# If you want to build AND push all containers, see the 'all-push' rule.
@@ -205,6 +207,7 @@ ifeq ($(DOCKER_BUILD),"true")
--rm \
-e GOPATH=/go \
-e GOROOT=/usr/local/go \
+ -e GITHUB_TOKEN=$(GITHUB_TOKEN) \
-v "${HOME}/.kube:/root/.kube" \
-v "$(PWD)/.go:/go" \
-v "$(PWD):/go/src/$(PKG)" \
@@ -247,4 +250,4 @@ release-helm:
@/bin/bash ./build/release_helm.sh $(VERSION)
release-kanctl:
- @/bin/bash -c ./build/release_kanctl.sh
+ @$(MAKE) run CMD='-c "./build/release_kanctl.sh"'
