From 632e965108bc87a8c73d2b552dd35e73fbd25760 Mon Sep 17 00:00:00 2001 From: Ben Swinney Date: Mon, 23 Mar 2020 13:54:42 +1100 Subject: [PATCH 1/3] ppc64le support for kfctl --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 91536266..8f60882b 100755 --- a/Makefile +++ b/Makefile @@ -126,14 +126,16 @@ build-kfctl: deepcopy generate fmt vet #GOOS=windows GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/windows/kfctl.exe cmd/kfctl/main.go GOOS=darwin GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=${TAG}" -o bin/darwin/kfctl cmd/kfctl/main.go GOOS=linux GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/linux/kfctl cmd/kfctl/main.go - cp bin/$(ARCH)/kfctl bin/kfctl + GOOS=linux GOARCH=ppc64le ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/ppc64le/kfctl cmd/kfctl/main.go + #cp bin/$(ARCH)/kfctl bin/kfctl # Release tarballs suitable for upload to GitHub release pages build-kfctl-tgz: build-kfctl - chmod a+rx ./bin/kfctl + chmod a+rx ./bin/$(ARCH)/kfctl rm -f bin/*.tgz cd bin/linux && tar -cvzf kfctl_$(TAG)_linux.tar.gz ./kfctl cd bin/darwin && tar -cvzf kfctl_${TAG}_darwin.tar.gz ./kfctl + cd bin/ppc64le && tar -cvzf kfctl_${TAG}_ppc64le.tar.gz ./kfctl build-and-push-operator: build-operator push-operator @@ -175,6 +177,12 @@ push-to-github-release: build-kfctl-tgz --tag $(TAG) \ --name "kfctl_$(TAG)_darwin.tar.gz" \ --file bin/kfctl_$(TAG)_darwin.tar.gz + github-release upload \ + --user kubeflow \ + --repo kubeflow \ + --tag $(TAG) \ + --name "kfctl_$(TAG)_ppc64le.tar.gz" \ + --file bin/kfctl_$(TAG)_ppc64le.tar.gz build-kfctl-container: DOCKER_BUILDKIT=1 docker build \ From 407653adb0944e4d76e4ceb25c81baa112bafa9a Mon Sep 17 00:00:00 2001 From: Ben Swinney Date: Mon, 23 Mar 2020 13:57:43 +1100 Subject: [PATCH 2/3] ppc64le support for kfctl and update git push details --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8f60882b..8e6ff4ec 100755 --- a/Makefile +++ b/Makefile @@ -170,19 +170,19 @@ push-to-github-release: build-kfctl-tgz --repo kubeflow \ --tag $(TAG) \ --name "kfctl_$(TAG)_linux.tar.gz" \ - --file bin/kfctl_$(TAG)_linux.tar.gz + --file bin/linux/kfctl_$(TAG)_linux.tar.gz github-release upload \ --user kubeflow \ --repo kubeflow \ --tag $(TAG) \ --name "kfctl_$(TAG)_darwin.tar.gz" \ - --file bin/kfctl_$(TAG)_darwin.tar.gz + --file bin/darwin/kfctl_$(TAG)_darwin.tar.gz github-release upload \ --user kubeflow \ --repo kubeflow \ --tag $(TAG) \ --name "kfctl_$(TAG)_ppc64le.tar.gz" \ - --file bin/kfctl_$(TAG)_ppc64le.tar.gz + --file bin/ppc64le/kfctl_$(TAG)_ppc64le.tar.gz build-kfctl-container: DOCKER_BUILDKIT=1 docker build \ From 3dd65cbf991316d9beae8c3f8d7629e4561b5c0b Mon Sep 17 00:00:00 2001 From: Ben Swinney Date: Thu, 26 Mar 2020 09:47:36 +1100 Subject: [PATCH 3/3] Remove un-needed code --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 8e6ff4ec..bad2f177 100755 --- a/Makefile +++ b/Makefile @@ -127,7 +127,6 @@ build-kfctl: deepcopy generate fmt vet GOOS=darwin GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=${TAG}" -o bin/darwin/kfctl cmd/kfctl/main.go GOOS=linux GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/linux/kfctl cmd/kfctl/main.go GOOS=linux GOARCH=ppc64le ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/ppc64le/kfctl cmd/kfctl/main.go - #cp bin/$(ARCH)/kfctl bin/kfctl # Release tarballs suitable for upload to GitHub release pages build-kfctl-tgz: build-kfctl